Good morning every expert, I have a question. I used:
It only made my EXE's Icon changed. But I want it to show on the Title Bar too. How can I accomplish that? I try to change my window to OVERLAPPED, but doesn't seem to work.Code:int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd){ LoadIcon(hInstance,MAKEINTRESOURCE(ICON)); }
Another thing is:
How can I solve this problem?(Display CURSOR1 as the Cursor of DIALOG2)Code:BOOL CALLBACK WndProc2(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam){ static HINSTANCE hInst; switch(msg){ case WM_INITDIALOG: LoadCursor(hInst,MAKEINTRESOURCE("CURSOR1")); break; case WM_CLOSE: DestroyWindow(hwnd); PostQuitMessage(0); break; default: break; } return 0; } ///This function is only for my 2nd DIALOG(DIALOG2)



Reply With Quote