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

C / C++ / MFC

 
GeneralBitmap Display Help Pin
LighthouseJ28-Feb-05 6:30
LighthouseJ28-Feb-05 6:30 
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 
I'm trying to create a button on a property sheet (not a property page). Here's what I have for creating the button:

SetWindowPos( &wndTopMost, 200, 100, 700, 500, SWP_SHOWWINDOW );//This is the property sheet window

pWnd = GetParent();
m_btnRead.Create("Button Text Here", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, CRect(10, 50, 690, 490), pWnd, 1);

The button never shows up anywhere, no matter what coordinates I put in.

Am I using CRect incorrectly? Or am I just missing the obvious somewhere?

I do apologize for asking this, but I've never worked with property sheets before and I've always just dropped the buttons onto the dialog where I needed them (yes, I was being lazy).

Any help is appreciated.
GeneralRe: Creating buttons and CRect Pin
Blake Miller28-Feb-05 5:32
Blake Miller28-Feb-05 5:32 
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 

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.