Solved

WS_EX_CONTEXTHELP in a dialog not working

Posted on 1998-06-15
6
1,220 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sum67 challenge 35 107
fizzArray  challenge 1 95
Modbus - whats the maximum I can store in one register? 4 80
Fibonacci challenge 11 132
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

808 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