Click here to Skip to main content
15,900,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CMonthCalCtrl Pin
Waldermort12-Sep-06 15:17
Waldermort12-Sep-06 15:17 
GeneralRe: CMonthCalCtrl Pin
RedSwampFroggy12-Sep-06 16:26
RedSwampFroggy12-Sep-06 16:26 
AnswerRe: CMonthCalCtrl Pin
Hamid_RT13-Sep-06 8:34
Hamid_RT13-Sep-06 8:34 
GeneralRe: CMonthCalCtrl Pin
RedSwampFroggy16-Sep-06 18:35
RedSwampFroggy16-Sep-06 18:35 
QuestionMemory Allocation: new vs. malloc vs. ? Pin
nadiric12-Sep-06 13:33
nadiric12-Sep-06 13:33 
AnswerRe: Memory Allocation: new vs. malloc vs. ? Pin
Christian Graus12-Sep-06 14:05
protectorChristian Graus12-Sep-06 14:05 
AnswerRe: Memory Allocation: new vs. malloc vs. ? Pin
Joe Woodbury12-Sep-06 16:33
professionalJoe Woodbury12-Sep-06 16:33 
QuestionStill wrong with winuser.h... can not do any thing now Pin
bloodwinner12-Sep-06 12:56
bloodwinner12-Sep-06 12:56 
AnswerRe: Still wrong with winuser.h... can not do any thing now Pin
Waldermort12-Sep-06 15:07
Waldermort12-Sep-06 15:07 
AnswerRe: Still wrong with winuser.h... can not do any thing now Pin
Hamid_RT13-Sep-06 8:20
Hamid_RT13-Sep-06 8:20 
QuestionStatus Window in DLL Pin
mparent12-Sep-06 11:47
mparent12-Sep-06 11:47 
AnswerRe: Status Window in DLL Pin
Christian Graus12-Sep-06 12:10
protectorChristian Graus12-Sep-06 12:10 
QuestionScrollbar Pin
speedy471112-Sep-06 11:12
speedy471112-Sep-06 11:12 
AnswerRe: Scrollbar Pin
cje12-Sep-06 11:56
cje12-Sep-06 11:56 
GeneralRe: Scrollbar Pin
speedy471112-Sep-06 12:11
speedy471112-Sep-06 12:11 
QuestionDesktop capture Pin
Waldermort12-Sep-06 10:50
Waldermort12-Sep-06 10:50 
AnswerRe: Desktop capture Pin
Christian Graus12-Sep-06 11:16
protectorChristian Graus12-Sep-06 11:16 
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


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.