News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

How to get the owner hwnd of a dialogbox

Started by Tam, August 22, 2007, 03:06:10 PM

Previous topic - Next topic

Tam

INT_PTR DialogBox(          HINSTANCE hInstance,
    LPCTSTR lpTemplate,
    HWND hWndParent,
    DLGPROC lpDialogFunc
);

a process call DialogBox("xxx", hwndParent, DlgProc), and soon a dialogbox popup(It's hwnd is hwndChild)
Now, I know hwndChild, how can I get hwndParent?
Thank you.

hutch--

Try the simple API GeParent() for the parent handle.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Tedd

If you're the one creating the dialog box, then the hWndParent parameter will be the handle of your main application window.
No snowflake in an avalanche feels responsible.