VC++ SDI text
Hi, i was wondering how i would go about writing text on the screen whe the user clicks there.
I am using Microsotf Visual C++ 6.0 and have made a Single-document-interface and need to place my name where the user clicks on the screen. i am sorta confused...please help.
-----------------------------
-------Mitch Mulholland------
----A.K.A.= TwisteR----------
-----------------------------
------------------------------------Mitch Mulholland----------A.K.A.= TwisteR---------------------------------------
I assume you are using MFC. In your CView class, keep some member variables like x, y and clickflag. Initialize clickflag to false in your CView constructor.
Then use ClassWizard to create a handler for WM_LBUTTONDOWN.
Now in your OnLButtonDown method do something like this:
Finally, in your OnDraw you can do this:
and that should about cover it
Hope this helps
Seeya,
Krippy
Then use ClassWizard to create a handler for WM_LBUTTONDOWN.
Now in your OnLButtonDown method do something like this:
|
Finally, in your OnDraw you can do this:
|
and that should about cover it

Hope this helps
Seeya,
Krippy
thank you sooooooooooooooooooo soooooooooooooooooo sooooooooooooooooooooo soooooooooooooooo Much!!!
it worked absolutely perfectly. I would have been lost with out it...Thank you again!!!
-----------------------------
-------Mitch Mulholland------
----A.K.A.= TwisteR----------
-----------------------------
it worked absolutely perfectly. I would have been lost with out it...Thank you again!!!
-----------------------------
-------Mitch Mulholland------
----A.K.A.= TwisteR----------
-----------------------------
------------------------------------Mitch Mulholland----------A.K.A.= TwisteR---------------------------------------
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement