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

C / C++ / MFC

 
AnswerRe: About InstallWinIoDriver function of WinIo.dll Pin
Randor 17-Mar-14 9:31
professional Randor 17-Mar-14 9:31 
GeneralRe: About InstallWinIoDriver function of WinIo.dll Pin
cedricvictor18-Mar-14 2:30
cedricvictor18-Mar-14 2:30 
QuestionVisual c++ 6 freeware ? Pin
KrishnaRayalu_Talisetti16-Mar-14 21:07
KrishnaRayalu_Talisetti16-Mar-14 21:07 
AnswerRe: Visual c++ 6 freeware ? Pin
CPallini16-Mar-14 22:25
mveCPallini16-Mar-14 22:25 
GeneralRe: Visual c++ 6 freeware ? Pin
KrishnaRayalu_Talisetti16-Mar-14 23:45
KrishnaRayalu_Talisetti16-Mar-14 23:45 
GeneralRe: Visual c++ 6 freeware ? Pin
CPallini16-Mar-14 23:54
mveCPallini16-Mar-14 23:54 
AnswerRe: Visual c++ 6 freeware ? Pin
Jochen Arndt16-Mar-14 22:32
professionalJochen Arndt16-Mar-14 22:32 
GeneralRe: Visual c++ 6 freeware ? Pin
KrishnaRayalu_Talisetti16-Mar-14 23:48
KrishnaRayalu_Talisetti16-Mar-14 23:48 
GeneralRe: Visual c++ 6 freeware ? Pin
Jochen Arndt17-Mar-14 0:04
professionalJochen Arndt17-Mar-14 0:04 
GeneralRe: Visual c++ 6 freeware ? Pin
KrishnaRayalu_Talisetti17-Mar-14 0:46
KrishnaRayalu_Talisetti17-Mar-14 0:46 
AnswerRe: Visual c++ 6 freeware ? Pin
Albert Holguin17-Mar-14 12:37
professionalAlbert Holguin17-Mar-14 12:37 
QuestionMFC CreateCompatibleDC(), Drawtext() no display [Solved] Pin
econy16-Mar-14 16:23
econy16-Mar-14 16:23 
AnswerRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
CPallini16-Mar-14 23:41
mveCPallini16-Mar-14 23:41 
GeneralRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
econy17-Mar-14 3:01
econy17-Mar-14 3:01 
AnswerRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
Chris Losinger17-Mar-14 3:33
professionalChris Losinger17-Mar-14 3:33 
GeneralRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
econy17-Mar-14 4:09
econy17-Mar-14 4:09 
GeneralRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
Chris Losinger17-Mar-14 4:21
professionalChris Losinger17-Mar-14 4:21 
NewsRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
econy17-Mar-14 4:30
econy17-Mar-14 4:30 
GeneralRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
Chris Losinger17-Mar-14 5:02
professionalChris Losinger17-Mar-14 5:02 
GeneralRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
econy17-Mar-14 5:06
econy17-Mar-14 5:06 
GeneralRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
econy17-Mar-14 5:19
econy17-Mar-14 5:19 
GeneralRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
Chris Losinger17-Mar-14 5:34
professionalChris Losinger17-Mar-14 5:34 
GeneralRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
econy17-Mar-14 16:11
econy17-Mar-14 16:11 
GeneralRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
Chris Losinger18-Mar-14 1:41
professionalChris Losinger18-Mar-14 1:41 
econy wrote:
But, the string "My Test" 's position is not at same position of Static text(IDC_STATIC_TXT1).

offset I guess is about 50 to 100 pixel.


could that be due to the DT_CENTER|DT_VCENTER flags?

econy wrote:
 

And if I change CPaintDC dc(pTxt1Static) to CPaintDC dc(this),


it should be CPaintDC dc(this). you're painting the dialog, after all, not the static control.

also, try making your static control a 'frame' type, not a static text. something like:
CONTROL "",IDC_DRAWING_FRAME,"Static",SS_ETCHEDFRAME,12,199,169,66

that gives you a rectangle with no text in it.

GeneralRe: MFC CreateCompatibleDC(), Drawtext() no display Pin
Chris Losinger18-Mar-14 1:44
professionalChris Losinger18-Mar-14 1:44 

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.