I have read some of the tutorial at :http://www.winprog.org about Visual C++ and it show how to make a simple window but in 2 different way and I do not know wich one choose now.
The first one is bigger and look like this :
And the other one is quite simple and it use the resource editor and I just write :Code:WNDCLASSEX wc;
HWND hwnd;
MSG Msg;
wc.cbSize = sizeof(WNDCLASSEX);
wc.style = 0;
wc.lpfnWndProc = WndProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
......................
The problem is with the seconde way I cannot see how to add icon to my program.Code:int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
return DialogBox(hInstance, MAKEINTRESOURCE(IDD_MAIN), NULL, DlgProc);
}
Daok
