Click here to Skip to main content
15,907,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to avoid flicking when changing dialog size? Pin
chybin3-Apr-06 21:38
chybin3-Apr-06 21:38 
AnswerRe: How to resize control after LButtonUp? Pin
Nibu babu thomas3-Apr-06 21:49
Nibu babu thomas3-Apr-06 21:49 
GeneralRe: How to resize control after LButtonUp? Pin
chybin3-Apr-06 22:28
chybin3-Apr-06 22:28 
GeneralRe: How to resize control after LButtonUp? Pin
YaronNir4-Apr-06 4:27
YaronNir4-Apr-06 4:27 
QuestionHelp on recordsets Pin
swapna_signsin3-Apr-06 21:23
swapna_signsin3-Apr-06 21:23 
AnswerRe: Help on recordsets Pin
thatsme_cool3-Apr-06 21:51
thatsme_cool3-Apr-06 21:51 
GeneralRe: Help on recordsets Pin
swapna_signsin3-Apr-06 22:02
swapna_signsin3-Apr-06 22:02 
QuestionRe: Help on recordsets Pin
swapna_signsin3-Apr-06 22:04
swapna_signsin3-Apr-06 22:04 
AnswerRe: Help on recordsets Pin
thatsme_cool3-Apr-06 22:29
thatsme_cool3-Apr-06 22:29 
GeneralRe: Help on recordsets Pin
thatsme_cool3-Apr-06 23:44
thatsme_cool3-Apr-06 23:44 
GeneralRe: Help on recordsets Pin
swapna_signsin4-Apr-06 3:00
swapna_signsin4-Apr-06 3:00 
GeneralRe: Help on recordsets Pin
thatsme_cool4-Apr-06 19:30
thatsme_cool4-Apr-06 19:30 
Questiondatabase heros please help me? Pin
J51219823-Apr-06 21:06
J51219823-Apr-06 21:06 
AnswerRe: database heros please help me? Pin
includeh103-Apr-06 21:10
includeh103-Apr-06 21:10 
QuestionRe: database heros please help me? Pin
J51219823-Apr-06 21:35
J51219823-Apr-06 21:35 
AnswerRe: database heros please help me? Pin
includeh104-Apr-06 0:37
includeh104-Apr-06 0:37 
GeneralRe: database heros please help me? Pin
J51219824-Apr-06 19:51
J51219824-Apr-06 19:51 
QuestionHow to handle lost focus in DrawItem of Button Pin
Sarvan AL3-Apr-06 20:59
Sarvan AL3-Apr-06 20:59 
AnswerRe: How to handle lost focus in DrawItem of Button Pin
includeh103-Apr-06 21:15
includeh103-Apr-06 21:15 
AnswerRe: How to handle lost focus in DrawItem of Button Pin
Hamid_RT3-Apr-06 21:32
Hamid_RT3-Apr-06 21:32 
GeneralRe: How to handle lost focus in DrawItem of Button Pin
Sarvan AL3-Apr-06 22:01
Sarvan AL3-Apr-06 22:01 
Questionerror C2065: 'CWnd' : undeclared identifier (reposting with addl info) Pin
giftsana3-Apr-06 20:57
giftsana3-Apr-06 20:57 
AnswerRe: error C2065: 'CWnd' : undeclared identifier (reposting with addl info) Pin
includeh103-Apr-06 21:04
includeh103-Apr-06 21:04 
AnswerRe: error C2065: 'CWnd' : undeclared identifier (reposting with addl info) Pin
Cedric Moonen3-Apr-06 21:04
Cedric Moonen3-Apr-06 21:04 
Questionerror C2065: 'CWnd' : undeclared identifier Pin
giftsana3-Apr-06 20:55
giftsana3-Apr-06 20:55 
I have a module in VC++6.0. it enumerates all desktop items and displays each item.tested this module on Win 2000 and Win XP.

After displaying each window i want to close each launched desktop item window by doing the following:
CWnd* pWnd = FindWindow(NULL, strName);//strName is name of window launched.
if(pWnd)
{ pWnd->PostMessage(WM_CLOSE,0,0);
}

but i get the foll error:
error C2065: 'CWnd' : undeclared identifier

i tried including the foll in the stdafx.h file
#define _WIN32_WINNT 0x0500
#include <windows.h>
still i get the same error.

What do i need to include to overcome this problem?
Kindly reply at the earliest.

Sincerely
Giftsana

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.