im trying to set up a simple progress bar in windows 98 using the win32 API, but im not having much luck. this is a simplified version of my code.
what is the problem here? according to a reference i downloaded this should all work fine. all i want to do is put a progress bar in a window.Code:#include <windows.h> #include <commctrl.h> HINSTANCE g_hinst; LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { HWND hwndPB; RECT rcClient; int cyVScroll; switch(msg) { case WM_CREATE: GetClientRect(hwnd, &rcClient); cyVScroll = GetSystemMetrics(SM_CYVSCROLL); hwndPB = CreateWindowEx(0, PROGRESS_CLASS (LPSTR)NULL, WS_CHILD | WS_VISIBLE, rcClient.left, rcClient.bottom - cyVScroll, rcClient.right, cyVScroll, hwnd, (HMENU) 0, g_hinst, NULL); SendMessage(hwndPB, PBM_SETRANGE, 0, MAKELPARAM (0,100)); SendMessage(hwndPB, PBM_SETPOS, (WPARAM)33, 0); break; } return 0; }



LinkBack URL
About LinkBacks



but I quite agree; if I were a regular c++ boarder I would be alarmed by the insidious creep of the dreaded 'winscum'.