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

C / C++ / MFC

 
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 
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 
Ok, just for the heck of it do this
int CMyPropertySheet::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
   if (CPropertySheet::OnCreate(lpCreateStruct) == -1)
      return -1;
 
   // Create a button on the sheet
   if (!m_MyButton.Create(_T("The Button"),
                          WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON,
                          CRect(30, 30, 1024, 768),
                          this,
                          ID_MY_BUTTON))
   {
      // Button creation failed
      ASSERT (FALSE);
      return -1;
   }
 
   return 0;
}
You should now have one huge button that takes up your entire sheet and then some. Now play with the size and position until you get the button where you want it.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004

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 
GeneralRe: Creating buttons and CRect Pin
bcemick1-Mar-05 3:06
bcemick1-Mar-05 3:06 
GeneralRe: Hidocuments based application Pin
PJ Arends28-Feb-05 10:15
professionalPJ Arends28-Feb-05 10:15 
QuestionRuntime Error! - pure virtual function call? Pin
Antony M Kancidrowski28-Feb-05 2:59
Antony M Kancidrowski28-Feb-05 2:59 
AnswerRe: Runtime Error! - pure virtual function call? Pin
Jay Carter28-Feb-05 3:13
Jay Carter28-Feb-05 3:13 

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.