Click here to Skip to main content
15,915,086 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Portrait to LandScape Pin
Hamid_RT22-Aug-06 7:25
Hamid_RT22-Aug-06 7:25 
QuestionSprite Animation Pin
lman81719-Aug-06 21:35
lman81719-Aug-06 21:35 
AnswerRe: Sprite Animation Pin
Mike Dimmick20-Aug-06 6:24
Mike Dimmick20-Aug-06 6:24 
Questioncapturing keyboard events Pin
Vissu8919-Aug-06 20:04
Vissu8919-Aug-06 20:04 
AnswerRe: capturing keyboard events [modified] Pin
bob1697220-Aug-06 4:40
bob1697220-Aug-06 4:40 
GeneralRe: capturing keyboard events Pin
Vissu8920-Aug-06 14:39
Vissu8920-Aug-06 14:39 
AnswerRe: capturing keyboard events Pin
Hamid_RT22-Aug-06 7:13
Hamid_RT22-Aug-06 7:13 
QuestionIcons Pin
Waldermort19-Aug-06 17:20
Waldermort19-Aug-06 17:20 
I had this working perfectly before, but now it's all screwed up, even after doing a clean-build.

I have 2 icons in my resources
<br />
#define IDI_ICON1                       301<br />
#define IDI_ICON2                       302

The first problem is I want the main icon for the exe to be ICON1, at the moment it's ICON2 and refuses to change. The taskbar icon is ICON1, no problems there. The title bar is the default WIN32 icon. I use the following code to change this but still my icon is not being displayed.
dw = GetClassLong(hDlg,GCL_HICONSM);
HANDLE icon = LoadImage(hInstance,MAKEINTRESOURCE(IDI_ICON1),IMAGE_ICON,16,16,LR_DEFAULTSIZE);
dw = SetClassLong(hDlg,GCL_HICONSM,(LONG) icon);
dw = GetClassLong(hDlg,GCL_HICONSM);
dw = GetLastError();

According to the code, the icon was set, but it refuses to display.
AnswerRe: Icons Pin
Michael Dunn20-Aug-06 6:10
sitebuilderMichael Dunn20-Aug-06 6:10 
Questioncontrol the frame WM_CLOSE message in MDI sub window, and must capture it and judge If can close the frame Pin
balconysun19-Aug-06 15:26
balconysun19-Aug-06 15:26 
AnswerRe: control the frame WM_CLOSE message in MDI sub window, and must capture it and judge If can close the frame Pin
cje22-Aug-06 10:33
cje22-Aug-06 10:33 
QuestionReturning Spoken Text from SAPI Pin
Bob X19-Aug-06 9:01
Bob X19-Aug-06 9:01 
QuestionWrite character in SDI Pin
Max++19-Aug-06 7:05
Max++19-Aug-06 7:05 
AnswerRe: Write character in SDI Pin
MarkDoubson19-Aug-06 10:13
MarkDoubson19-Aug-06 10:13 
QuestionWhere to start driver development? Pin
sawerr19-Aug-06 2:39
sawerr19-Aug-06 2:39 
AnswerRe: Where to start driver development? Pin
Joe Woodbury19-Aug-06 11:39
professionalJoe Woodbury19-Aug-06 11:39 
GeneralRe: Where to start driver development? Pin
Mike Dimmick20-Aug-06 6:34
Mike Dimmick20-Aug-06 6:34 
AnswerRe: Where to start driver development? Pin
faroo2820-Aug-06 2:48
faroo2820-Aug-06 2:48 
AnswerRe: Where to start driver development? Pin
Hamid_RT21-Aug-06 1:35
Hamid_RT21-Aug-06 1:35 
GeneralRe: Where to start driver development? Pin
sawerr21-Aug-06 10:30
sawerr21-Aug-06 10:30 
Questiontraverse a directory and list all file names? Pin
George_George18-Aug-06 23:47
George_George18-Aug-06 23:47 
AnswerRe: traverse a directory and list all file names? Pin
_AnsHUMAN_ 18-Aug-06 23:56
_AnsHUMAN_ 18-Aug-06 23:56 
GeneralRe: traverse a directory and list all file names? Pin
George_George20-Aug-06 0:18
George_George20-Aug-06 0:18 
AnswerRe: traverse a directory and list all file names? Pin
Hamid_RT19-Aug-06 1:39
Hamid_RT19-Aug-06 1:39 
GeneralRe: traverse a directory and list all file names? Pin
George_George20-Aug-06 0:20
George_George20-Aug-06 0:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.