Using a dialog resource as a window (API)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sick0Fant
    New Member
    • Feb 2008
    • 121

    Using a dialog resource as a window (API)

    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.
  • Studlyami
    Recognized Expert Contributor
    • Sep 2007
    • 464

    #2
    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?

    Comment

    • Sick0Fant
      New Member
      • Feb 2008
      • 121

      #3
      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

      Comment

      Working...