Solved

WS_EX_CONTEXTHELP in a dialog not working

Posted on 1998-06-15
6
1,227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
deburging in oracle form 12 112
iSeries DB2 Query 2 98
VBA "SendKeys" Syntax for Multiple Keystrokes 7 126
child constructor and parent constructor, overriding and overloading 6 93
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.

730 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