Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

changing dialog box property at runtime

11 views
Skip to first unread message

rahul

unread,
Mar 9, 2010, 10:41:14 AM3/9/10
to
I want to Launch a Dialog box from my mfc application.

Dialog Box is launched through a exported function from .dll

I want to keep Context Help Button (at top-right corner near close
button) only when at some input parameter is something. i.e. I want to
change dialog box property at run time

How can I get this thing done??

plz help..

John H.

unread,
Mar 31, 2010, 7:58:02 PM3/31/10
to
rahul wrote:
> I want to keep Context Help Button (at top-right corner near close
> button) only when at some input parameter is something. i.e. I want to
> change dialog box property at run time

When creating the dialog box object, you can set the extened window
style. In partiuclar you are interested in the WS_EX_CONTEXTHELP
flag. Take a look at CWnd::CreateEx and the dwStyle argument. Or if
you don't have access to its creation, you can still modify the style
with the CWnd::ModifyStyleEx method.

Also, you might try posting to microsoft.public.vc.mfc. That group
seems a little more active.

0 new messages