Click here to Skip to main content
15,911,306 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to create address book using MFC?? Pin
nisha0000030-Jul-08 19:28
nisha0000030-Jul-08 19:28 
AnswerRe: How to create address book using MFC?? Pin
_AnsHUMAN_ 30-Jul-08 19:40
_AnsHUMAN_ 30-Jul-08 19:40 
AnswerRe: How to create address book using MFC?? Pin
CPallini30-Jul-08 21:09
mveCPallini30-Jul-08 21:09 
GeneralRe: How to create address book using MFC?? Pin
Iain Clarke, Warrior Programmer30-Jul-08 21:41
Iain Clarke, Warrior Programmer30-Jul-08 21:41 
GeneralRe: How to create address book using MFC?? Pin
CPallini30-Jul-08 21:48
mveCPallini30-Jul-08 21:48 
QuestionRe: How to create address book using MFC?? Pin
David Crow31-Jul-08 5:55
David Crow31-Jul-08 5:55 
Questionlist control exibiting 2 properties Pin
VCProgrammer30-Jul-08 19:14
VCProgrammer30-Jul-08 19:14 
AnswerRe: list control exibiting 2 properties Pin
Iain Clarke, Warrior Programmer30-Jul-08 22:11
Iain Clarke, Warrior Programmer30-Jul-08 22:11 
I'm not sure I'm seeing your problem.

One section of code is using switch (lplvcd->nmcd.dwDrawStage) { case XXXX:, and the other is using if (lplvcd->nmcd.dwDrawStage == XXXX) else if... but that should hardly be a challenge.

So your last case statement gets bigger?

Another thought you could have...

Why not keep your code? If each works in clearly separated circumstances, try:

void CColoredListCtrl::OnCustomDraw ( NMHDR* pNMHDR, LRESULT* pResult )
{
    if (Am_I_in_a_thread ())
        OnCustomDrawThreaded (pNMHDR, pResult)
    else
        OnCustomDrawNotThreaded (pNMHDR, pResult)
}


and just rename your two functions!

Iain.
QuestionOnly copying done not replacing in SHFileOperation !!! Pin
Le@rner30-Jul-08 18:24
Le@rner30-Jul-08 18:24 
AnswerRe: Only copying done not replacing in SHFileOperation !!! Pin
_AnsHUMAN_ 30-Jul-08 18:47
_AnsHUMAN_ 30-Jul-08 18:47 
QuestionRe: Only copying done not replacing in SHFileOperation !!! Pin
David Crow31-Jul-08 5:59
David Crow31-Jul-08 5:59 
Questiondll error Pin
tom groezer30-Jul-08 5:03
tom groezer30-Jul-08 5:03 
AnswerRe: dll error Pin
Chris Losinger30-Jul-08 5:11
professionalChris Losinger30-Jul-08 5:11 
AnswerRe: dll error Pin
Iain Clarke, Warrior Programmer30-Jul-08 5:29
Iain Clarke, Warrior Programmer30-Jul-08 5:29 
GeneralRe: dll error Pin
led mike30-Jul-08 7:55
led mike30-Jul-08 7:55 
AnswerRe: dll error Pin
Mark Salsbery30-Jul-08 6:33
Mark Salsbery30-Jul-08 6:33 
QuestionTimer in AES code Pin
zc12330-Jul-08 3:51
zc12330-Jul-08 3:51 
AnswerRe: Timer in AES code Pin
Iain Clarke, Warrior Programmer30-Jul-08 4:23
Iain Clarke, Warrior Programmer30-Jul-08 4:23 
GeneralRe: Timer in AES code Pin
zc12330-Jul-08 5:08
zc12330-Jul-08 5:08 
GeneralRe: Timer in AES code Pin
Iain Clarke, Warrior Programmer30-Jul-08 5:26
Iain Clarke, Warrior Programmer30-Jul-08 5:26 
GeneralRe: Timer in AES code Pin
zc12330-Jul-08 5:34
zc12330-Jul-08 5:34 
QuestionVisual Studio 2005 project loading Pin
tom groezer30-Jul-08 3:39
tom groezer30-Jul-08 3:39 
AnswerRe: Visual Studio 2005 project loading Pin
KarstenK30-Jul-08 3:52
mveKarstenK30-Jul-08 3:52 
GeneralRe: Visual Studio 2005 project loading Pin
tom groezer30-Jul-08 5:06
tom groezer30-Jul-08 5:06 
GeneralRe: Visual Studio 2005 project loading Pin
tom groezer30-Jul-08 5:19
tom groezer30-Jul-08 5:19 

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.