469,300 Members | 2,293 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,300 developers. It's quick & easy.

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 1623
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.