By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
461,955 Members | 709 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 461,955 IT Pros & Developers. It's quick & easy.

Using a dialog resource as a window (API)

P: 121
Hi. I'm trying to develop an MDI that will open up "documents" that are dialog boxes that I have defined in a resource file.

However, when I select "open document" from my menu, I get a white window instead of the dialog box that I had hoped would appear.

Could somebody give me some hints as to where and how this dialog box is supposed to be created? Right now, in FrameWndProc() I use CreateWindow() when FrameWndProc receives a WM_CREATE, then, when FrameWndProc() receives a NEWDOCUMENT message, I use CreateDialog() to create the dialog.

Thanks in advance for your help.
Mar 10 '08 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 464
Can i see the code surrounding the NEWDOCUMENT message (the code in which you actually create the Dialog). In your dialog code did you specify the Resource ID enum { IDD = <ResourceID>}; or did you pass in the Resource ID during the CreateDialog call?
Mar 10 '08 #2

P: 121
Actually, I figured it out. The resource file I had in the dll I was using was just a blank dialog. o_0

So, that's why it was coming up blank. lol
Mar 10 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.