Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Desktop capture Pin
Waldermort12-Sep-06 11:29
Waldermort12-Sep-06 11:29 
GeneralRe: Desktop capture Pin
PJ Arends12-Sep-06 15:37
professionalPJ Arends12-Sep-06 15:37 
QuestionHow to edit text directly on CView Pin
linjunhong12-Sep-06 9:34
linjunhong12-Sep-06 9:34 
AnswerRe: How to edit text directly on CView Pin
Chris Losinger12-Sep-06 9:41
professionalChris Losinger12-Sep-06 9:41 
QuestionDLL Injection Pin
_slave2master_12-Sep-06 9:13
_slave2master_12-Sep-06 9:13 
QuestionA tough API question!? help please Pin
Cy#12-Sep-06 9:11
Cy#12-Sep-06 9:11 
AnswerRe: A tough API question!? help please Pin
Waldermort12-Sep-06 11:07
Waldermort12-Sep-06 11:07 
QuestionWin32: PropertySheet Wizard97 with ownerdrawn buttons? Pin
virtualnik12-Sep-06 9:08
virtualnik12-Sep-06 9:08 
Hi,

I am successfully using the PropertySheet() function with the PSH_WIZARD97 flag. All is working fine.

But when i try to set the Next/Prev/Finish/Cancel/Help buttons to ownerdraw then it does not work!

To clarify: I successfully set those buttons to ownerdraw state when using not the Wizard97 flag - means when using a normal property sheet.

But when defining the PSH_WIZARD97 flag the buttons are not ownerdrawn anymore.

However, i still can change the size and the labels of those buttons.

How/when i am doing this: I am using the callback function and on PSCB_INITIALIZED i am accessing those buttons:

For example, to set another text for the Help button i do the following:
SendMessage(GetDlgItem(hDlg, IDHELP), WM_SETTEXT, NULL, (LPARAM)(LPTSTR)szNewLabel);

But when setting the ownerdrawn flag, it seems to either get ignored or overwritten. I do it the following way:
DWORD dwStyle = BS_OWNERDRAW|WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN;
SetWindowLong(GetDlgItem(hDlg, IDHELP), GWL_STYLE, dwStyle);

Again - if i remove the PSD_WIZARD97 flag, then the button is ownerdrawn... but then i have a normal property sheet and i want that wizard interface.

Does anybody know a solution?

Thank you
Nikolaus


QuestionGetQueuedCompletionStatus returns ERROR_NOACCESS Pin
malgosia12-Sep-06 8:36
malgosia12-Sep-06 8:36 
AnswerRe: what happened? Did I edited some .h file accidently??? Pin
Chris Losinger12-Sep-06 8:23
professionalChris Losinger12-Sep-06 8:23 
GeneralRe: what happened? Did I edited some .h file accidently??? Pin
Maximilien12-Sep-06 8:25
Maximilien12-Sep-06 8:25 
GeneralI thought I ruined it, can I copy others to cover it? Pin
bloodwinner12-Sep-06 8:33
bloodwinner12-Sep-06 8:33 
GeneralRe: I thought I ruined it, can I copy others to cover it? Pin
Chris Losinger12-Sep-06 8:35
professionalChris Losinger12-Sep-06 8:35 
Generalthe problem may be the line "extern "C" {" (27th line) Pin
bloodwinner12-Sep-06 8:47
bloodwinner12-Sep-06 8:47 
GeneralRe: the problem may be the line "extern "C" {" (27th line) Pin
Chris Losinger12-Sep-06 8:55
professionalChris Losinger12-Sep-06 8:55 
AnswerRe: what happened? Did I edited some .h file accidently??? Pin
Anonymuos12-Sep-06 8:45
Anonymuos12-Sep-06 8:45 
GeneralRe: what happened? Did I edited some .h file accidently??? Pin
bloodwinner12-Sep-06 8:49
bloodwinner12-Sep-06 8:49 
AnswerRe: what happened? Did I edited some .h file accidently??? Pin
bob1697212-Sep-06 8:57
bob1697212-Sep-06 8:57 
AnswerRe: what happened? Did I edited some .h file accidently??? Pin
Nibu babu thomas12-Sep-06 17:33
Nibu babu thomas12-Sep-06 17:33 
Questionwhat happened? Did I edited some .h file accidently??? Pin
bloodwinner12-Sep-06 8:16
bloodwinner12-Sep-06 8:16 
Questionstrange behavior Pin
Haoman1712-Sep-06 8:12
Haoman1712-Sep-06 8:12 
AnswerRe: strange behavior Pin
Chris Losinger12-Sep-06 8:26
professionalChris Losinger12-Sep-06 8:26 
AnswerRe: strange behavior Pin
Jun Du12-Sep-06 8:33
Jun Du12-Sep-06 8:33 
AnswerRe: strange behavior Pin
Zac Howland12-Sep-06 9:45
Zac Howland12-Sep-06 9:45 
QuestionCComboBox do not show droplist Pin
NorGUI12-Sep-06 7:02
NorGUI12-Sep-06 7:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.