CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    resizing of button

    Hi

    Can we give our own defined button size for the default (Ok, Cancel, Apply) buttons in a property sheet? Or can we resize these buttons?

    Thanks in advance
    [email protected]


  2. #2
    Join Date
    Apr 1999
    Posts
    27

    Re: resizing of button

    Hi
    I think it is possible to resize the buttons by using
    pButton->SetWindowPos(NULL, 0, 0, yourWidth, yourHeight,
    SWP_NOMOVE | SWP_NOZORDER);

    get a poiter to the button by calling
    CButton *pButton = (CButton*) GetDlgItem(IDC_...)
    Ids are: IDOK, IDCANCEL, ID_APPLY_NOW
    you can get the current size of a button by calling
    pButton->GetWindowRect(rect)
    then you can modify the rect and call SetWindowPos(....)

    cu

    --
    -=SKULK=-

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured