1)How to change the size of a button at run time ?
Answer / 106743013743
Hi,
below, code is running successfully, I hope that it might be
useful for you!!!!
BOOL Csample_button_name_changeDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CButton *btnsample = (CButton *)GetDlgItem(IDC_BUTTON1);
//below, the Code to change Size of the button
btnsample->SetWindowPos(0,0,0,100,100,SWP_FRAMECHANGED);
return TRUE;
}
Code By Ctharam
Is This Answer Correct ? | 1 Yes | 1 No |
How you create a button dynamically?
Can you explaing the relashionship between document,frame and view ?
What is the base class for MFC Framework ?
What is the use of UpdateData funciton ?
what is the size of a process
what is message Testing ?
Tell me about different kinds of synchranization objects ?
is there any class which is not derived from Cobject
Tell me the different controls in MFC ?
What is Multithreading
what are the feauters of CObject
1)How to change a text of a button as Dynamically?