Click here to Skip to main content
15,902,874 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFont problem? Pin
RJT23428-Feb-05 6:23
RJT23428-Feb-05 6:23 
AnswerRe: Font problem? Pin
zhang80060528-Feb-05 21:08
zhang80060528-Feb-05 21:08 
Generalmystified Pin
gyrvwrzp28-Feb-05 6:17
gyrvwrzp28-Feb-05 6:17 
GeneralRe: mystified Pin
Blake Miller28-Feb-05 7:02
Blake Miller28-Feb-05 7:02 
Generalresizing View Pin
act_x28-Feb-05 5:35
act_x28-Feb-05 5:35 
GeneralRe: resizing View Pin
valikac28-Feb-05 18:56
valikac28-Feb-05 18:56 
GeneralCreating buttons and CRect Pin
bcemick28-Feb-05 4:05
bcemick28-Feb-05 4:05 
GeneralRe: Creating buttons and CRect Pin
Blake Miller28-Feb-05 5:32
Blake Miller28-Feb-05 5:32 
If this code is IN the property sheet, you problem might be with the GetParent() call. You are getting the parent of the PropertySheet, which might very well be the desktop...

Try leaving out the GetParent() call and use this instead. (Keep in mind your child coordinate are relative to upper left corner of property sheet, and not entire screen...)

m_btnRead.Create("Button Text Here", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, CRect(10, 50, 690, 490), this, 1);
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 6:21
bcemick28-Feb-05 6:21 
GeneralRe: Creating buttons and CRect Pin
Blake Miller28-Feb-05 6:58
Blake Miller28-Feb-05 6:58 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 5:35
professionalPJ Arends28-Feb-05 5:35 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 6:25
bcemick28-Feb-05 6:25 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 6:37
professionalPJ Arends28-Feb-05 6:37 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 6:45
bcemick28-Feb-05 6:45 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 6:53
professionalPJ Arends28-Feb-05 6:53 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 7:23
bcemick28-Feb-05 7:23 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 8:05
professionalPJ Arends28-Feb-05 8:05 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 8:29
bcemick28-Feb-05 8:29 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 9:57
professionalPJ Arends28-Feb-05 9:57 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 10:12
bcemick28-Feb-05 10:12 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 10:22
professionalPJ Arends28-Feb-05 10:22 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 10:29
professionalPJ Arends28-Feb-05 10:29 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 10:55
bcemick28-Feb-05 10:55 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 11:14
professionalPJ Arends28-Feb-05 11:14 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 11:28
bcemick28-Feb-05 11:28 

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.