Thread: Inverse of GetMenu()...

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

    Inverse of GetMenu()...


    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.

    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

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

    Do you have an ID number and want a HWND?


    Do you have a HWND and want an ID?


    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, 09: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