10-14-2004, 07:54 PM
You don't need button id.
a.DoDefaultAction
or
but child(a.a)
Or, try to use single function child() to find visible button. You need to include button style, which is different for visible and invisible controls.
int hwnd=child("" "AfxWnd42s" "My Dialog" 128 style)
but hwnd
Here 128 is flag that tells to interpret x as style. Control style is displayed in QM status bar, second line.
a.DoDefaultAction
or
but child(a.a)
Or, try to use single function child() to find visible button. You need to include button style, which is different for visible and invisible controls.
int hwnd=child("" "AfxWnd42s" "My Dialog" 128 style)
but hwnd
Here 128 is flag that tells to interpret x as style. Control style is displayed in QM status bar, second line.