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 |
i have created runtime menu -- ( admistrator ->managepackage,manage module). but now i want to open a dialog when i select manage package and any other diaolg when selecting manage module ( whole selection is at run time only ) . Please HELP .its urgently required
What is document-view architecture ? Give me one real time example for SDI ?
How can i change the color of a dropdowncombobox elements
What is the difference between ASSERT and VERIFY?
How to update windows title bar dynamically?
What is socket?
what message is sent to an application when the user presses the primary button?
Which MFC function is used to display output?
What function is called by a document class to notify views that the document has been changed?
What is CALLBACK? How it work? what is the advantage of CALLBACK, please explain with an example
What are the types of button controls?
How can update edit control data of an executing application from other application?