For OpenGL need create window two times.
First i create window(window have procWin) and check suport formats.
Then i destroyed first window.
And create second window(window have the same procWin) but PeekMessage(for only second window) send me postquete !
And my program shut down.
My question if i create two windows , did i must registerclassex two times ?
And how correct destroy first window ?
I try two times registerclassex for win1(now procWin1Empty) and win2(proc Win2).
I destroy Win1 (eax=1) but peekmessage get info from Win1(procWin1Empty ) !
But proc Win2 not sending eny message ! And not see MessageBox,0,'Win2', 'Win 2' !
If i pressed Alf+F4 i see messageBox Close(from procWin1Empty)
I use CreateWindowEx for create two windows. And two windows have:
wc WNDCLASSEX struct.
And wc2 WNDCLASSEX struct.
I read msdn CreateWindow function in user32 but not see in fasm user32.inc CreateWindowA.
Did the wndClassEx strucs have unique values? Did registering succeed?
I haven't used 2 Windows, but the following is a slightly annotated Window of mine. It's somewhat hackey, but I was referencing MSDN and just needed something running, so it's not that clean. May spark some ideas:
Two RegisterClassEx-s work fine.
And two CreateWindowEx-s Win1 and Win2 not get error.
And i see Win1 and Win2
But peekmessage get info from Win1(from procWin1Empty)
Because i press Alt+F4 and see MessageBox 'Close' ! But window Win1 not closed and steel work.
I do four times Alt+F4 and see MessageBox 'Close' always !
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum