Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

WS_EX_CONTEXTHELP in a dialog not working

Posted on 1998-06-15
6
Medium Priority
?
1,269 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 400 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

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!

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

636 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