Simple question of pure curiousness..
It what instance would it be usefull or desirable to describe youself as the owner of any given messagebox?
And another question (after browsing that great Wosit site!), when they say that you are only given a single dword to list the size of your bitmap, that would mean 4 GB right?
It what instance would it be usefull or desirable to describe youself as the owner of any given messagebox?
int MessageBox(
HWND hWnd, // handle to owner window
LPCTSTR lpText, // text in message box
LPCTSTR lpCaption, // message box title
UINT uType // message box style
);
And another question (after browsing that great Wosit site!), when they say that you are only given a single dword to list the size of your bitmap, that would mean 4 GB right?
Matthew,
The ownership of a MessageBox() is determined by the handle passed to it. If you don't have a parent to call it, you use handle 0 (zero) and it is effectively owned by the shell. In most instances you use the handle of the main window in the application it is called from. This makes it a MODAL messagebox where the app cannot be accessed until the messagebox is closed.
Regards,
hutch@movsd.com
The ownership of a MessageBox() is determined by the handle passed to it. If you don't have a parent to call it, you use handle 0 (zero) and it is effectively owned by the shell. In most instances you use the handle of the main window in the application it is called from. This makes it a MODAL messagebox where the app cannot be accessed until the messagebox is closed.
Regards,
hutch@movsd.com