Click here to Skip to main content
15,915,160 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to change the font of MessageBox() Pin
30-Jun-02 20:48
suss30-Jun-02 20:48 
AnswerRe: How to change the font of MessageBox() Pin
30-Jun-02 23:19
suss30-Jun-02 23:19 
GeneralURLDownLoadToFile Force Download Pin
30-Jun-02 19:34
suss30-Jun-02 19:34 
GeneralRe: URLDownLoadToFile Force Download Pin
[James Pullicino]1-Jul-02 5:27
[James Pullicino]1-Jul-02 5:27 
GeneralRe: URLDownLoadToFile Force Download Pin
1-Jul-02 13:26
suss1-Jul-02 13:26 
GeneralRe: URLDownLoadToFile Force Download Pin
[James Pullicino]1-Jul-02 22:27
[James Pullicino]1-Jul-02 22:27 
GeneralRe: URLDownLoadToFile Force Download Pin
2-Jul-02 13:07
suss2-Jul-02 13:07 
GeneralPlacing text into an MDI Document Pin
Matt Fenwick30-Jun-02 19:03
Matt Fenwick30-Jun-02 19:03 
Lets see is three times the charm will work with this problem. I'm getting close to a solution, but I'm not seeing it. I'm trying to get {right now ANYTHING!!!!} to be place into an MDI document and then displayed on the screen. I have tried several things, here is my latest try:

I have a menu item labeled InsertText, for that function, I have the following code:

void CMyAppView::OnTestingInserttext()
{

CMyAppDoc* pDoc = (CMyAppDoc*)GetDocument();

CDC* pDC;
CString outtext;

outtext="This is a test";
pDC->TextOut(outtext); Cry | :(( I think part of my problem is here
pDoc->UpdateAllViews(NULL);

}

I then have the following code placed under OnDraw():

{
CMyAppDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
}

What am I doing wrong? When I place TextOut(0,0,outtext), it compiles, but then when I click the Insert Text, I get a DLL GPF error.

How do you get the current cursor position and then use that for the TextOut command? I'm using an EditView MDI, please help, I'm about to give up on C++ and go back to VB.
GeneralRe: Placing text into an MDI Document Pin
Nish Nishant30-Jun-02 19:20
sitebuilderNish Nishant30-Jun-02 19:20 
GeneralRe: Placing text into an MDI Document Pin
Matt Fenwick30-Jun-02 19:40
Matt Fenwick30-Jun-02 19:40 
GeneralRe: Placing text into an MDI Document Pin
urid30-Jun-02 21:43
urid30-Jun-02 21:43 
GeneralRe: Placing text into an MDI Document Pin
30-Jun-02 22:20
suss30-Jun-02 22:20 
GeneralRe: Placing text into an MDI Document Pin
Matt Fenwick1-Jul-02 1:42
Matt Fenwick1-Jul-02 1:42 
GeneralRe: Placing text into an MDI Document Pin
Matt Fenwick1-Jul-02 1:34
Matt Fenwick1-Jul-02 1:34 
GeneralRe: Placing text into an MDI Document Pin
[James Pullicino]1-Jul-02 3:55
[James Pullicino]1-Jul-02 3:55 
GeneralRe: Placing text into an MDI Document Pin
[James Pullicino]30-Jun-02 23:47
[James Pullicino]30-Jun-02 23:47 
GeneralRe: Placing text into an MDI Document Pin
Matt Fenwick1-Jul-02 1:39
Matt Fenwick1-Jul-02 1:39 
GeneralRe: Placing text into an MDI Document Pin
[James Pullicino]1-Jul-02 3:59
[James Pullicino]1-Jul-02 3:59 
QuestionHow to draw superscripted/subscripted text Pin
Rama Krishna Vavilala30-Jun-02 17:37
Rama Krishna Vavilala30-Jun-02 17:37 
AnswerRe: How to draw superscripted/subscripted text Pin
Christian Graus30-Jun-02 17:42
protectorChristian Graus30-Jun-02 17:42 
GeneralRe: How to draw superscripted/subscripted text Pin
Rama Krishna Vavilala30-Jun-02 17:54
Rama Krishna Vavilala30-Jun-02 17:54 
GeneralApplication Error Pin
30-Jun-02 16:06
suss30-Jun-02 16:06 
GeneralRe: Application Error Pin
Christian Graus30-Jun-02 17:23
protectorChristian Graus30-Jun-02 17:23 
GeneralRe: Application Error Pin
30-Jun-02 17:46
suss30-Jun-02 17:46 
GeneralRe: Application Error Pin
Christian Graus30-Jun-02 17:53
protectorChristian Graus30-Jun-02 17:53 

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.