Click here to Skip to main content
15,910,210 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: can anybody explain me vtable and related things using this code snippet? Pin
Cedric Moonen7-Nov-06 2:21
Cedric Moonen7-Nov-06 2:21 
GeneralRe: can anybody explain me vtable and related things using this code snippet? Pin
baldha rakesh7-Nov-06 2:32
baldha rakesh7-Nov-06 2:32 
GeneralRe: can anybody explain me vtable and related things using this code snippet? Pin
Cedric Moonen7-Nov-06 3:20
Cedric Moonen7-Nov-06 3:20 
QuestionStatic variable into a MFC DLL class Pin
NorGUI7-Nov-06 2:03
NorGUI7-Nov-06 2:03 
AnswerRe: Static variable into a MFC DLL class Pin
Mark Salsbery7-Nov-06 6:24
Mark Salsbery7-Nov-06 6:24 
QuestionListCtrl on VC7 Pin
Get_Rakesh7-Nov-06 2:00
Get_Rakesh7-Nov-06 2:00 
AnswerRe: ListCtrl on VC7 Pin
prasad_som7-Nov-06 2:10
prasad_som7-Nov-06 2:10 
GeneralRe: ListCtrl on VC7 Pin
Get_Rakesh7-Nov-06 2:32
Get_Rakesh7-Nov-06 2:32 
QuestionRe: ListCtrl on VC7 Pin
prasad_som7-Nov-06 2:58
prasad_som7-Nov-06 2:58 
QuestionRe: ListCtrl on VC7 Pin
David Crow7-Nov-06 2:54
David Crow7-Nov-06 2:54 
QuestionWant to control a plugged in USB storage drive Pin
Biju Raman7-Nov-06 0:57
Biju Raman7-Nov-06 0:57 
AnswerRe: Want to control a plugged in USB storage drive Pin
Cedric Moonen7-Nov-06 1:35
Cedric Moonen7-Nov-06 1:35 
GeneralRe: Want to control a plugged in USB storage drive Pin
Biju Raman30-Nov-06 0:39
Biju Raman30-Nov-06 0:39 
QuestionDraw something on CreateDC()'s HDC Pin
Toubou7-Nov-06 0:30
Toubou7-Nov-06 0:30 
AnswerRe: Draw something on CreateDC()'s HDC Pin
Steve S7-Nov-06 0:58
Steve S7-Nov-06 0:58 
Out of interest, why
HDC hdc = CreateCompatibleDC(CreateDC(TEXT("DISPLAY"),0,0,0));


instead of
HDC hdc = CreateCompatibleDC( your-window-dc-here )

Incidentally, your use of GetDC and CreateDC will make it very difficult to tidy up afterwards...

Oh, and before I forget, when you create a compatible DC, you get a default monochrome bitmap as the drawing surface, which is 1x1 in size, which should answer your question.



Steve S
Developer for hire

GeneralRe: Draw something on CreateDC()'s HDC Pin
Toubou7-Nov-06 1:30
Toubou7-Nov-06 1:30 
GeneralRe: Draw something on CreateDC()'s HDC Pin
Steve S7-Nov-06 2:45
Steve S7-Nov-06 2:45 
GeneralRe: Draw something on CreateDC()'s HDC Pin
Toubou7-Nov-06 4:20
Toubou7-Nov-06 4:20 
AnswerRe: Draw something on CreateDC()'s HDC Pin
Hamid_RT7-Nov-06 7:11
Hamid_RT7-Nov-06 7:11 
JokeRe: Draw something on CreateDC()'s HDC Pin
Steve S7-Nov-06 7:24
Steve S7-Nov-06 7:24 
Questionmoving mouse cursor using WIN32 Pin
priyank_ldce7-Nov-06 0:16
priyank_ldce7-Nov-06 0:16 
AnswerRe: moving mouse cursor using WIN32 Pin
Nibu babu thomas7-Nov-06 0:45
Nibu babu thomas7-Nov-06 0:45 
Questionchanging color of static text Pin
Kiran Pinjala7-Nov-06 0:12
Kiran Pinjala7-Nov-06 0:12 
AnswerRe: changing color of static text Pin
Nibu babu thomas7-Nov-06 0:47
Nibu babu thomas7-Nov-06 0:47 
AnswerRe: changing color of static text Pin
Hamid_RT7-Nov-06 1:08
Hamid_RT7-Nov-06 1:08 

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.