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 are the types of button controls?
1) create ToolTip in MFC?
1)How to change a text of a button in runtime?
How can server communicate with more than one client
What function is called by a document class to notify views that the document has been changed?
What function is used to disable a control at runtime?
What is socket?
how u can move CDC pointer to one line in cview?
What is serialization ?which function is responsible for serializing data ?
What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?
1.Get string1,string2,string3 1.add string1 and 2,string1 and 3. 2.replace vowels with T 3.count number of T. 4.remove T 5.COPY string1 to stringf. 6.restore string1. print the following 1.Number of T 2.StringF 3.string1+string2+string3 Use pointers and functions
What is the difference between the ASSERT and VERIFY macros?