Click here to Skip to main content
15,927,916 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I want to use Installshield ?? HOW Pin
Zeeshan Bilal7-Jun-04 18:59
Zeeshan Bilal7-Jun-04 18:59 
GeneralRe: I want to use Installshield ?? HOW Pin
Vadim Tabakman7-Jun-04 19:25
Vadim Tabakman7-Jun-04 19:25 
GeneralRe: I want to use Installshield ?? HOW Pin
PJ Arends7-Jun-04 19:43
professionalPJ Arends7-Jun-04 19:43 
QuestionHow to use vc6 + directx8? Pin
chenbuaa7-Jun-04 17:08
chenbuaa7-Jun-04 17:08 
AnswerRe: How to use vc6 + directx8? Pin
Zeeshan Bilal7-Jun-04 18:35
Zeeshan Bilal7-Jun-04 18:35 
GeneralRe: How to use vc6 + directx8? Pin
Vadim Tabakman7-Jun-04 18:38
Vadim Tabakman7-Jun-04 18:38 
AnswerRe: How to use vc6 + directx8? Pin
Vadim Tabakman7-Jun-04 18:37
Vadim Tabakman7-Jun-04 18:37 
Generaltext drawn with CPaintDC::DrawText disappears!!! Pin
kfaday7-Jun-04 16:47
kfaday7-Jun-04 16:47 
Hi!
in the onpaint function of a dialog i've got this code:

CString temptext;
this->m_EditTexto.GetWindowText(temptext);
CSize size=dlgDC.GetTextExtent(temptext);
CRect rect;
rect.left=m_pto_pers_texto.x-size.cx/2;
rect.right=rect.left+size.cx;
rect.top=m_pto_pers_texto.y;
rect.bottom=rect.top+size.cy;
dlgDC.DrawText(temptext,-1,rect,DT_CENTER);

it's a part of a drag and drop operation, when i drag something, it writes what the user inserts.
if i drag the from the same place, the old text disappaers and the new one shows up, in the new position where i've dropped the object.

is the problem here?
thanks!

Another thing. i'm just storing what i draw in a list of CPoint's. Is it posible to transfer the text to points? sounds quite hard to me.
should i put everything in a CRgn?
GeneralRe: text drawn with CPaintDC::DrawText disappears!!! Pin
Johan Rosengren7-Jun-04 19:43
Johan Rosengren7-Jun-04 19:43 
GeneralRe: text drawn with CPaintDC::DrawText disappears!!! Pin
kfaday8-Jun-04 2:19
kfaday8-Jun-04 2:19 
Generala interesting question about status bar Pin
boyboy7-Jun-04 16:37
boyboy7-Jun-04 16:37 
QuestionEM_SETSEL - Clearing Selection? Pin
Blake V. Miller7-Jun-04 15:37
Blake V. Miller7-Jun-04 15:37 
AnswerRe: EM_SETSEL - Clearing Selection? Pin
Ryan Binns7-Jun-04 18:02
Ryan Binns7-Jun-04 18:02 
GeneralRe: EM_SETSEL - Clearing Selection? Pin
Blake V. Miller7-Jun-04 18:14
Blake V. Miller7-Jun-04 18:14 
GeneralRe: EM_SETSEL - Clearing Selection? Pin
Blake V. Miller7-Jun-04 18:16
Blake V. Miller7-Jun-04 18:16 
QuestionStatic or nonstatic member function? Pin
Vicord Chrane7-Jun-04 15:23
Vicord Chrane7-Jun-04 15:23 
AnswerRe: Static or nonstatic member function? Pin
Ryan Binns7-Jun-04 18:05
Ryan Binns7-Jun-04 18:05 
GeneralEnumerating Internet Ports Pin
Archer2827-Jun-04 13:24
Archer2827-Jun-04 13:24 
GeneralCan't Connect to the server Pin
osal7-Jun-04 11:50
osal7-Jun-04 11:50 
Questionis application open? Pin
pnpfriend7-Jun-04 10:00
pnpfriend7-Jun-04 10:00 
AnswerRe: is application open? Pin
David Crow7-Jun-04 10:48
David Crow7-Jun-04 10:48 
AnswerRe: is application open? Pin
Archer2827-Jun-04 13:21
Archer2827-Jun-04 13:21 
GeneralCArray Pin
brdavid7-Jun-04 9:56
brdavid7-Jun-04 9:56 
GeneralRe: CArray Pin
David Crow7-Jun-04 10:33
David Crow7-Jun-04 10:33 
GeneralRe: CArray Pin
brdavid7-Jun-04 11:41
brdavid7-Jun-04 11:41 

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.