1)How to load an icon on a button as Dynamically ?
Answer / 106743013743
Hi Frienz,
Example:-
BOOL Ctharam::OnInitDialog()
{
CDialog::OnInitDialog();
// Below Below, to load icon on button as Dynamic
CButton *btnsample = (CButton *)GetDlgItem(IDC_BUTTON1);
btnsample->ModifyStyle(0,BS_ICON,SWP_FRAMECHANGED);
HICON hIcon = LoadIcon(AfxGetResourceHandle(),
(LPCTSTR)IDI_ICON1);
btnsample->SetIcon(hIcon);
return TRUE;
}
I hope, it might be helpful to you!!!!
By Ctharam
Is This Answer Correct ? | 1 Yes | 0 No |
What is document-view architecture ? Give me one real time example for SDI ?
What is CSingleDocTemplate?
What is socket?
How to handle RTTI in MFC ?
how many types of messages are their
What is the base class for MFC Framework ?
If application hangs while SendMessage is waiting for the result, how you handle it?
Hi All, i am new for VC++ SDK. i want to get the IP Address of all the External device connected with my local machine.please give the code Regards, Praveer
How can server communicate with more than one client
what is the size of a process
What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?
What interface must be supported by an ActiveX control?