Click here to Skip to main content
15,896,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 6:21
bcemick28-Feb-05 6:21 
Thank you for responding. However...

Blake Miller wrote:
If this code is IN the property sheet, you problem might be with the GetParent() call.

It is indeed in the Property Sheet. I'm trying to create buttons when the Property Sheet is called (or launched).

I tried leaving out the GetParent() call, but still nothing.

The MSDN says that for creating buttons, the parameters should be:

Create( LPCTSTR lpszCaption, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );

I'm curious about something here: if I'm not calling GetParent, how exactly would I reference the parent window? "this" doesn't work and, as far as I can tell, there is no variable for it or really any way to reference it since it's a CPropertySheet class and I need a CWnd class for the 4th parameter.

Blake Miller wrote:
Keep in mind your child coordinate are relative to upper left corner of property sheet, and not entire screen...

The width and height of the Property Sheet are: 700 and 500. That's why I put the coordinates at 690 and 490. As far as I can tell, that should put it in the bottom right corner. Or am I misreading it?
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 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 11:39
professionalPJ Arends28-Feb-05 11:39 

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.