Loading Child Windows from Resources

This is a discussion on Loading Child Windows from Resources within the Windows Programming forums, part of the Platform Specific Boards category; Hello. I'm using VC++ 6 and Pure Win32 API. No MFC. I'm trying to figure this one out. It's quite ...

  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    9

    Loading Child Windows from Resources

    Hello.

    I'm using VC++ 6 and Pure Win32 API. No MFC.

    I'm trying to figure this one out. It's quite frustrating, but it's probably something really simple that I just overlooked...maybe.

    I'm trying to load from resource a child window. I've made the frame and client windows, but when I try to load the Child Dialog, it never appears. I'm honestly stumped at this point.

    I first searched for an answer before asking, but all of the searchs came up with creating the window from scratch, and I just want to load mine from a resource.

    Right now, I'm just using the

    Code:
    hChildWnd = CreateDialog(blah);
    to create a modeless dialog. In the resource editor, I've got it set to a child window, not popup or overlapped.

    Is there some special way of loading it in the code I'm not familiar with?


    Thanks in advance,
    Chris

  2. #2
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    Perhaps it is a problem with your resource. Could you please post the code.

  3. #3
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    Call ShowWindow() to display the dialog.

    Or specify WS_VISIBLE in the dialog resource.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 03:44 AM
  2. General question about Windows resources
    By Boomba in forum Windows Programming
    Replies: 2
    Last Post: 07-19-2004, 09:36 PM
  3. Child windows - OpenGL
    By jdinger in forum Windows Programming
    Replies: 7
    Last Post: 11-18-2002, 02:05 AM
  4. Question about MDI child windows?
    By Unregistered in forum Windows Programming
    Replies: 2
    Last Post: 07-21-2002, 08:30 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21