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 |
how does the UIThread and worker thread communicates and handle events
Hi can anyone explain about the synchronization objects types and where we are using in the code.
How many types of combo box are their
2 Answers Aaditya Info Solutions, E Logic,
1)To Remove WS_MINIMIZEBOX in a Frame ?
What is document-view architecture ? Give me one real time example for SDI ?
What is mfc class hierarchy?
Given two processes, how can they share memory?
I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)
what is the use of AFX_MANAGE_STATE ?
How to convert a CString variable to char* or LPTSTR?
1)why we cant create more than one instance of the class Derived from CWinApp
Whats is DDX & DDV in MFC?