Click here to Skip to main content
15,905,616 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWinXp machine, but WINVER macro is 0x400 ?? Pin
CEx6-Feb-03 0:42
CEx6-Feb-03 0:42 
Hi,
I am working on windows XP machine, Visual Studio 6.0(SP5),
I am trying to draw caption using the following function :
::DrawCaption(m_hWnd, *pDC,&rcCaption,DC_ACTIVE|DC_TEXT|DC_GRADIENT);

Studio reports the error that DC_GRADIENT is undeclared identifier.
If I go to the source of where this macro is declared, I see a conditional declaration that if WINVER is >= 0x500 only then this could be compiled.

If I look for the source of WINVER, it is 0x400 in some files(winRes.h and Windows.h), and 0x500 in other files(WinRef, WinUsr, WinGDI & WinDef).

Now I could not understand, that why is it defined to 0x400, on my XP machine ?? is it a issue with some Service pack ??

Could some body please throw some light on this ?

Regards,


Abhishek Narula
AnswerRe: WinXp machine, but WINVER macro is 0x400 ?? Pin
HENDRIK R6-Feb-03 1:10
HENDRIK R6-Feb-03 1:10 
AnswerRe: WinXp machine, but WINVER macro is 0x400 ?? Pin
KarstenK6-Feb-03 3:09
mveKarstenK6-Feb-03 3:09 
Generalabout zip file and jar file, urgent Pin
includeh106-Feb-03 0:26
includeh106-Feb-03 0:26 
GeneralRe: about zip file and jar file, urgent Pin
-Dy6-Feb-03 0:50
-Dy6-Feb-03 0:50 
GeneralRe: about zip file and jar file, urgent Pin
Ambit6-Feb-03 1:43
Ambit6-Feb-03 1:43 
GeneralRe: about zip file and jar file, urgent Pin
Mike Nordell6-Feb-03 4:11
Mike Nordell6-Feb-03 4:11 
GeneralRe: about zip file and jar file, urgent Pin
includeh106-Feb-03 5:23
includeh106-Feb-03 5:23 
GeneralRe: about zip file and jar file, urgent Pin
Mike Nordell7-Feb-03 3:55
Mike Nordell7-Feb-03 3:55 
GeneralDefault CD Player??. Pin
Demian Panello6-Feb-03 0:11
Demian Panello6-Feb-03 0:11 
GeneralExecuting the container Pin
-Dy5-Feb-03 23:21
-Dy5-Feb-03 23:21 
GeneralHtmlView, multiframe Pin
jeremysay5-Feb-03 23:21
jeremysay5-Feb-03 23:21 
GeneralRe: HtmlView, multiframe Pin
HENDRIK R6-Feb-03 0:55
HENDRIK R6-Feb-03 0:55 
GeneralRe: HtmlView, multiframe Pin
jeremysay6-Feb-03 2:04
jeremysay6-Feb-03 2:04 
GeneralRe: HtmlView, multiframe Pin
jeremysay6-Feb-03 3:11
jeremysay6-Feb-03 3:11 
GeneralRe: HtmlView, multiframe Pin
HENDRIK R6-Feb-03 3:28
HENDRIK R6-Feb-03 3:28 
GeneralRe: HtmlView, multiframe Pin
jeremysay6-Feb-03 3:44
jeremysay6-Feb-03 3:44 
QuestionConverSion To Irregular Bitmap ???? Pin
TDS5-Feb-03 22:56
TDS5-Feb-03 22:56 
AnswerRe: ConverSion To Irregular Bitmap ???? Pin
Christian Graus5-Feb-03 23:20
protectorChristian Graus5-Feb-03 23:20 
GeneralRe: ConverSion To Irregular Bitmap ???? Pin
Anonymous12-Feb-03 18:52
Anonymous12-Feb-03 18:52 
GeneralRe: ConverSion To Irregular Bitmap ???? Pin
Christian Graus12-Feb-03 19:05
protectorChristian Graus12-Feb-03 19:05 
GeneralCToolbarCtrl Pin
satyavasu5-Feb-03 22:38
satyavasu5-Feb-03 22:38 
Generallinking libs without .res Pin
Anonymous5-Feb-03 22:03
Anonymous5-Feb-03 22:03 
Generalconfusion Pin
AlexO6-Feb-03 2:44
AlexO6-Feb-03 2:44 
Generalfocus after application exit Pin
aputic5-Feb-03 21:23
aputic5-Feb-03 21:23 

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.