Inverse of GetMenu()...

This is a discussion on Inverse of GetMenu()... within the Windows Programming forums, part of the Platform Specific Boards category; Hello... I need know if exist some function or menssagem of the Win32 API, that catches a ID and returns ...

  1. #1
    A.I Programmer
    Join Date
    Mar 2007
    Location
    Teresina - Brazil
    Posts
    47

    Inverse of GetMenu()...

    Hello...

    I need know if exist some function or menssagem of the Win32 API, that catches a ID and returns the associated window to this ID.

    I use CreateWindowEx() to create the window and I set the ID by 10 argument of the function.

    Code:
    HWND CreateWindowEx(DWORD dwExStyle,
        LPCTSTR lpClassName,
        LPCTSTR lpWindowName,
        DWORD dwStyle,
        int x,
        int y,
        int nWidth,
        int nHeight,
        HWND hWndParent,
        HMENU hMenu,
        HINSTANCE hInstance,
        LPVOID lpParam
    );
    bye

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    You need the parents HWND [hWndParent]

    Do you have an ID number and want a HWND?

    GetDlgItem()


    Do you have a HWND and want an ID?

    GetDlgCtrlID()


    Both work with child windows and controls.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need to Calculate the Inverse of A Matrix.
    By jordan_230 in forum C Programming
    Replies: 6
    Last Post: 11-03-2008, 06:14 PM
  2. Multiplicative inverse question
    By Overworked_PhD in forum Tech Board
    Replies: 3
    Last Post: 04-02-2008, 10:58 AM
  3. How to inverse a trig?
    By Diablo02 in forum C# Programming
    Replies: 4
    Last Post: 11-07-2007, 10:11 PM
  4. inverse matrix
    By Yumin in forum C++ Programming
    Replies: 2
    Last Post: 11-15-2005, 12:06 AM
  5. Inverse Tan
    By spidereen in forum C++ Programming
    Replies: 2
    Last Post: 03-04-2003, 08:55 AM

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