Click here to Skip to main content
15,891,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AFX_MANAGE_STATE (AfxGetStaticModuleState ()) not working Pin
Madhu Nair29-Dec-09 21:43
Madhu Nair29-Dec-09 21:43 
Questionsending wav files using UPD protocol in vc++ Pin
janaswamy uday29-Dec-09 18:56
janaswamy uday29-Dec-09 18:56 
AnswerRe: sending wav files using UPD protocol in vc++ Pin
KingsGambit29-Dec-09 19:55
KingsGambit29-Dec-09 19:55 
AnswerRe: sending wav files using UPD protocol in vc++ Pin
raja jamwal31-Dec-09 8:22
raja jamwal31-Dec-09 8:22 
GeneralRe: sending wav files using UPD protocol in vc++ Pin
janaswamy uday1-Jan-10 23:44
janaswamy uday1-Jan-10 23:44 
Question[Resolved] CButtonST question, Remove the residue of old icon while setting a new icon with SetIcon [modified] Pin
Maxwell Chen29-Dec-09 18:51
Maxwell Chen29-Dec-09 18:51 
AnswerRe: CButtonST question, Remove the residue of old icon while setting a new icon with SetIcon Pin
KingsGambit29-Dec-09 19:47
KingsGambit29-Dec-09 19:47 
GeneralRe: CButtonST question, Remove the residue of old icon while setting a new icon with SetIcon Pin
Maxwell Chen29-Dec-09 20:03
Maxwell Chen29-Dec-09 20:03 
Rejeesh.T.S wrote:
Can you debug and see why SetIcon(0, 0) fails?


There are 3 versions of SetIcon, one is SetIcon(int, int) and the second is SetIcon(HICON, HICON).

I think the compiler links it to SetIcon(int, int) when I wrote SetIcon(NULL, NULL). So I casted it to force it invoke the correct version by SetIcon((HICON)NULL /* second arg has default val */). And it does not crash now.

But there is still old residue icon. I just downloaded the demo source of CButtonST v3.9 from CodeProject, and modified the code to make it change icon dynamically. I do not see it have this problem. And I compared the source code of CButtonST between the demo source and my code. They look the same regarding the icon drawing portion. This is so weird ...

  Maxwell Chen

QuestionToolBar in singe document view Pin
Anu_Bala29-Dec-09 18:25
Anu_Bala29-Dec-09 18:25 
Questionmap Pin
ratprita29-Dec-09 17:35
ratprita29-Dec-09 17:35 
AnswerRe: map Pin
KingsGambit29-Dec-09 17:54
KingsGambit29-Dec-09 17:54 
GeneralRe: map Pin
ratprita29-Dec-09 18:08
ratprita29-Dec-09 18:08 
GeneralRe: map Pin
Tim Craig29-Dec-09 18:11
Tim Craig29-Dec-09 18:11 
GeneralRe: map Pin
KingsGambit29-Dec-09 18:23
KingsGambit29-Dec-09 18:23 
QuestionRe: map Pin
CPallini29-Dec-09 21:18
mveCPallini29-Dec-09 21:18 
AnswerRe: map Pin
ratprita29-Dec-09 21:23
ratprita29-Dec-09 21:23 
GeneralRe: map Pin
CPallini29-Dec-09 22:11
mveCPallini29-Dec-09 22:11 
JokeRe: map Pin
Maxwell Chen29-Dec-09 21:23
Maxwell Chen29-Dec-09 21:23 
QuestionTrouble loading a driver Pin
Mattzimmerer29-Dec-09 13:05
Mattzimmerer29-Dec-09 13:05 
AnswerRe: Trouble loading a driver Pin
Maxwell Chen29-Dec-09 19:06
Maxwell Chen29-Dec-09 19:06 
GeneralRe: Trouble loading a driver Pin
Mattzimmerer30-Dec-09 0:48
Mattzimmerer30-Dec-09 0:48 
Question[Message Deleted] Pin
noalias___29-Dec-09 12:55
noalias___29-Dec-09 12:55 
AnswerRe: library link error Pin
Chris Losinger29-Dec-09 12:59
professionalChris Losinger29-Dec-09 12:59 
GeneralRe: library link error Pin
noalias___29-Dec-09 13:16
noalias___29-Dec-09 13:16 
Questionstreambuf out_waiting replacement Pin
ajucker29-Dec-09 6:51
ajucker29-Dec-09 6:51 

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.