Solved

WS_EX_CONTEXTHELP in a dialog not working

Posted on 1998-06-15
6
1,197 Views
Last Modified: 2013-11-20
I have a dialog (a DIALOGEX) with the minimizing (WS_MINIMIZEBOX) and
maximizing (WS_MAXIMIZEBOX) enabled, and then it doesn't show the context help box (neither the DS_CONTEXTHELP nor the WS_EX_CONTEXTHELP,
btw. why is there two context help options?). The ? box is shown when I remove the min/max boxes.
Has anyone seen the same problem? What do I do to show my ? box?
0
Comment
Question by:skin
  • 3
  • 2
6 Comments
 
LVL 1

Expert Comment

by:Andy_Keys
ID: 1317984
I can't remember where but somwhere in the documentation it state that you cannot have min or max button is you what the "What this" help button ie the "?"
0
 

Expert Comment

by:vivi052098
ID: 1317985
I have tried the same but when u are having minimize and maximize buttons,  the ? button will not just appear in the title bar. I have tried changing the style. The style flags are being modified but the modification is not reflecting in the title bar.. the styles WS_MAXIMIZEBOX, WS_MINIMIZEBOX and WS_EX_CONTEXTHLP are not conflicting.
You have to compromise with maximize and minimize if u want context hlp..  
I think that it is a problem in the position of the ? button.. it maybe displayed there but since the maximize and minimize buttons are taking it's place, it doesn't show..

0
 

Author Comment

by:skin
ID: 1317986
Thanks for the input.  The must be someone out there that has managed to do this successfully.  If someone does find documentation stating that it is not possible that will tell me to stop banging my head against the wall. Thanks.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:Andy_Keys
ID: 1317987
See Article ID: Q135787 in the MSDN knowledge base it says

SYMPTOMS

In Windows 95, the WS_EX_CONTEXTHELP extended window style is not compatible with the WS_MINIMIZEBOX or WS_MAXIMIZEBOX styles. The context help icon isn't displayed on the caption as long as one or both of the minimize or maximize boxes is displayed. The same thing happens with dialog boxes using the DS_CONTEXTHELP and the WS_MINIMIZEBOX or WS_MAXIMIZEBOX styles.

Note that the window must have the WS_SYSMENU style.

0
 

Author Comment

by:skin
ID: 1317988
Well that's enough proof for me.  I'll stop banging my head. If you want to mark this Q as answered, I'll give you the points.
Thanks!
0
 
LVL 1

Accepted Solution

by:
Andy_Keys earned 100 total points
ID: 1317989
Thanks ofr the pts. I know what you mean about head banging as I had the same problem !!!?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 94
Line meaning 9 81
matchUp  challenge 9 92
Change to event 1 100
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now