Hello Everyone.
I am relatively new to gui programming with win32. I have a question about using resources with the pelles editor.
I know how to draw a progress bar using the following
hWndProgressBar = CreateWindowEx(
0,
PROGRESS_CLASS,
(LPSTR)NULL,
WS_VISIBLE | WS_CHILD| PBS_SMOOTH,
36, // x
141, // y
100, // width
14, // height
g_Windowhandle,
(HMENU)MainProgress,
(HINSTANCE)GetWindowLongPtr(g_Windowhandle, GWL_HINSTANCE),
NULL);
if (!hWndProgressBar)
MessageBox(NULL, "Progress Bar Failed.", "Error", MB_OK | MB_ICONERROR);
SendMessage(hWndProgressBar, PBM_SETRANGE, 0, MAKELPARAM(0, 20));
SendMessage(hWndProgressBar, PBM_SETSTEP, (WPARAM)5, 0);
If I were to just draw a progress bar using the pelles editor, how do I tap into it? The functions seem to want a HWND. If there some registration function I need to use?
Thanks.