void CDialog2Dlg::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
HICON hIcon = LoadIcon(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDI_HOUSE));
this->SetIcon(hIcon, FALSE);
CDialog::OnLButtonDown(nFlags, point);
}
void CDialog2Dlg::OnRButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
HICON hIcon = LoadIcon(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDI_STAPLE));
this->SetIcon(hIcon, FALSE);
CDialog::OnRButtonDown(nFlags, point);
}
|