Click here to Skip to main content
15,921,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUsing CreateDialogIndirect Pin
kedar.dave22-Mar-05 0:46
kedar.dave22-Mar-05 0:46 
GeneralRe: Using CreateDialogIndirect Pin
Mircea Puiu22-Mar-05 4:23
Mircea Puiu22-Mar-05 4:23 
GeneralSetDICreateDeviceInfoList() Pin
brilliant10122-Mar-05 0:42
brilliant10122-Mar-05 0:42 
GeneralRe: SetDICreateDeviceInfoList() Pin
brilliant10122-Mar-05 0:45
brilliant10122-Mar-05 0:45 
GeneralRe: SetDICreateDeviceInfoList() Pin
David Crow22-Mar-05 2:17
David Crow22-Mar-05 2:17 
QuestionHow to get text on screen Pin
levgiang22-Mar-05 0:41
levgiang22-Mar-05 0:41 
AnswerRe: How to get text on screen Pin
jan larsen22-Mar-05 1:25
jan larsen22-Mar-05 1:25 
AnswerRe: How to get text on screen Pin
Anand for every one22-Mar-05 1:30
Anand for every one22-Mar-05 1:30 
do you want the text to appear within your application window or anywhere in screen(including the area out of your application window).

1) if you want the text to appear within your application window,

handle WM_LBUTTONDOWN OR onLButtonDown(in mfc), and within that get the device context of client(GetClientDC(this)) and display the text using TextOut or DrawText.(use point for mouse location)

2) if you want the text to appear anywhere in screen,

-Capture the mouse using SetCapture.
-Get the screen device context, using CreateDC(NULL).
-display the text using TextOut or DrawText.(use point for mouse location)
Cool | :cool:

AnswerRe: How to get text on screen Pin
David Crow22-Mar-05 2:20
David Crow22-Mar-05 2:20 
GeneralRe: How to get text on screen Pin
Anonymous22-Mar-05 23:30
Anonymous22-Mar-05 23:30 
GeneralRe: How to get text on screen Pin
David Crow23-Mar-05 3:07
David Crow23-Mar-05 3:07 
Generalnamespace does not exist Pin
doneirik22-Mar-05 0:40
doneirik22-Mar-05 0:40 
GeneralRe: namespace does not exist Pin
Martijn van Kleef22-Mar-05 1:11
Martijn van Kleef22-Mar-05 1:11 
GeneralRe: namespace does not exist Pin
toxcct22-Mar-05 1:41
toxcct22-Mar-05 1:41 
GeneralRe: namespace does not exist Pin
CP Visitor22-Mar-05 4:17
CP Visitor22-Mar-05 4:17 
Questionhow to maintain text file constant Pin
shaans22-Mar-05 0:39
shaans22-Mar-05 0:39 
AnswerRe: how to maintain text file constant Pin
Martijn van Kleef22-Mar-05 1:14
Martijn van Kleef22-Mar-05 1:14 
GeneralRe: how to maintain text file constant Pin
shaans22-Mar-05 2:19
shaans22-Mar-05 2:19 
AnswerRe: how to maintain text file constant Pin
toxcct22-Mar-05 1:36
toxcct22-Mar-05 1:36 
AnswerRe: how to maintain text file constant Pin
David Crow22-Mar-05 2:22
David Crow22-Mar-05 2:22 
QuestionHow to draw 3D objects like ball using GDI+ Pin
pubududilena22-Mar-05 0:23
pubududilena22-Mar-05 0:23 
GeneralImage compression using multiwavelet transform Pin
bashar talib22-Mar-05 0:20
sussbashar talib22-Mar-05 0:20 
GeneralApplications and Hardware devices Pin
brilliant10122-Mar-05 0:03
brilliant10122-Mar-05 0:03 
GeneralRe: Applications and Hardware devices Pin
David Crow22-Mar-05 2:26
David Crow22-Mar-05 2:26 
GeneralMultilingual support in vc++ Pin
inbakumar.G21-Mar-05 23:50
inbakumar.G21-Mar-05 23:50 

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.