Thread: Win32 Help
View Single Post
Old 11-12-2011, 11:56 AM   #2
gamez
Junior Member

Activity Longevity
0/20 17/20
Today Posts
0/11 ssssssss9
Default Re: Win32 Help

you have to give each WNDCLASS a different name and use it when you create a window.

wc.lpszClassName = "MyWndClassName";
wc2.lpszClassName = "MyWndClassName2";

ghMainWnd = ::CreateWindow("MyWndClassName", "MyWindow", WS_OVERLAPPEDWINDOW|WS_VSCROLL|WS_HSCROLL, 0, 0, 300, 300, 0, 0, ghAppInst, 0);
ghSecWnd = ::CreateWindow("MyWndClassName2", "MyWindow2", WS_OVERLAPPEDWINDOW|WS_VSCROLL|WS_HSCROLL, 300, 0, 300, 300, 0, 0, ghAppInst, 0);
gamez is offline   Reply With Quote