Results 1 to 3 of 3

Thread: Dialog Resource's

  1. #1

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    Unhappy

    Anyone,
    I got the idea from Parksie, about resource's, and I wanted to see if I could make a dialog resource, instead of using CreateWindow. Anyway, it works fine, and I can receive messages, and the controls all work. But there's one problem. The actual window itself isn't working. I think that I just have to pass a flag somewhere, to make it show, but I could be wrong. What do I have to do?? I'm stuck.

    The file attached, is the code, and not the exe.
    Attached Files Attached Files
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    At the end of your DialogProc, you need to return FALSE; to pass the message on to the default handler. Also, you don't need GetDesktopWindow -- just use NULL.

    If you see my example, that uses ShowWindow to make sure that it's displayed.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Also http://www.parksie.net/RawDlg.zip

    Hopefully with both of those that'll cover the newbies
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width