471,895 Members | 2,339 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,895 software developers and data experts.

Using a dialog resource as a window (API)

121 100+
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
2 1686
Studlyami
464 Expert 256MB
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
Sick0Fant
121 100+
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.

Similar topics

3 posts views Thread by Danny Pressley | last post: by
3 posts views Thread by Random Person | last post: by
1 post views Thread by Daveyk0 | last post: by
5 posts views Thread by Chris | last post: by
8 posts views Thread by Dennis C. Drumm | last post: by
1 post views Thread by Screenbert | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.