PDA

Click to See Complete Forum and Search --> : Win32


prog_tom
Dec 21st, 2001, 11:42 AM
Good morning every expert, I have a question. I used:

int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd){
LoadIcon(hInstance,MAKEINTRESOURCE(ICON));
}

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.

Another thing is:

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)

How can I solve this problem?(Display CURSOR1 as the Cursor of DIALOG2)