Click here to Skip to main content
16,016,301 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Regarding Call Stack Pin
Stephen Hewitt28-Sep-06 13:23
Stephen Hewitt28-Sep-06 13:23 
QuestionTreeView Pin
zizzzz27-Sep-06 22:27
zizzzz27-Sep-06 22:27 
AnswerRe: TreeView Pin
Waldermort27-Sep-06 23:07
Waldermort27-Sep-06 23:07 
AnswerRe: TreeView Pin
Hamid_RT29-Sep-06 8:23
Hamid_RT29-Sep-06 8:23 
GeneralRe: TreeView Pin
zizzzz29-Sep-06 22:01
zizzzz29-Sep-06 22:01 
GeneralRe: TreeView Pin
Hamid_RT30-Sep-06 4:56
Hamid_RT30-Sep-06 4:56 
QuestionNotepad application Pin
Ram Murali27-Sep-06 21:52
Ram Murali27-Sep-06 21:52 
AnswerRe: Notepad application [modified] Pin
_AnsHUMAN_ 27-Sep-06 21:56
_AnsHUMAN_ 27-Sep-06 21:56 
Ram Murali wrote:
Now my problem is i created the basic display

Did you create an Edit/Richedit control on your window?
Ram Murali wrote:
the display will not show that character.

It's the window of the application that you create.
You would need a richedit control or an edit box to start typing the text as we do it in notepad.
Here's the code for you:
In your Window Procedure you can create two variables as follows:
<br />
// Global Variables<br />
static HWND hWndEdit;<br />
static POINT pt;<br />

In the WM_CREATE message:OnCreate() of SDI Application.
<br />
hWndEdit =CreateWindow("EDIT","",WS_CHILD|WS_VISIBLE|WS_BORDER,<br />
          0,0,pt.x,pt.y,m_hWnd,NULL/*(HMENU)IDC_EDIT1*/,<br />
          GetModuleHandle(NULL),0);<br />
// Remove WS_BORDER if you don't need a border on the edit window to show<br />

in WM_SIZE: (OnSize() of the SDI Application)
<br />
	pt.x=LOWORD(lParam); //use cx in SDI instead of LOWORD(lParam)<br />
        pt.y =HIWORD(lParam);// use cy in SDI instead of HIWORD(lParam);<br />
	MoveWindow (hWndEdit,0,0,pt.x,pt.y,true);<br />

This is for WIN32 application. You can apply the same logic for MFC Application.
And now you can compile and run the application and type something in the window that we just created.
I hope this helps.
-- modified at 4:24 Thursday 28th September, 2006


Somethings seem HARD to do, until we know how to do them.
Wink | ;-) _AnShUmAn_

GeneralRe: Notepad application Pin
Ram Murali27-Sep-06 22:03
Ram Murali27-Sep-06 22:03 
GeneralRe: Notepad application Pin
_AnsHUMAN_ 27-Sep-06 22:11
_AnsHUMAN_ 27-Sep-06 22:11 
GeneralRe: Notepad application Pin
Ram Murali27-Sep-06 22:14
Ram Murali27-Sep-06 22:14 
GeneralRe: Notepad application Pin
_AnsHUMAN_ 27-Sep-06 22:18
_AnsHUMAN_ 27-Sep-06 22:18 
GeneralRe: Notepad application Pin
Ram Murali27-Sep-06 22:20
Ram Murali27-Sep-06 22:20 
GeneralRe: Notepad application Pin
Ram Murali27-Sep-06 22:30
Ram Murali27-Sep-06 22:30 
GeneralRe: Notepad application Pin
_AnsHUMAN_ 27-Sep-06 22:36
_AnsHUMAN_ 27-Sep-06 22:36 
GeneralRe: Notepad application Pin
Ram Murali27-Sep-06 22:41
Ram Murali27-Sep-06 22:41 
GeneralRe: Notepad application Pin
_AnsHUMAN_ 27-Sep-06 22:44
_AnsHUMAN_ 27-Sep-06 22:44 
GeneralRe: Notepad application Pin
Ram Murali27-Sep-06 22:48
Ram Murali27-Sep-06 22:48 
GeneralRe: Notepad application Pin
Hamid_RT27-Sep-06 23:41
Hamid_RT27-Sep-06 23:41 
GeneralRe: Notepad application Pin
Waldermort27-Sep-06 23:01
Waldermort27-Sep-06 23:01 
GeneralRe: Notepad application Pin
_AnsHUMAN_ 27-Sep-06 23:05
_AnsHUMAN_ 27-Sep-06 23:05 
JokeRe: Notepad application Pin
Hamid_RT27-Sep-06 23:41
Hamid_RT27-Sep-06 23:41 
GeneralRe: Notepad application Pin
Waldermort27-Sep-06 22:18
Waldermort27-Sep-06 22:18 
AnswerRe: Notepad application Pin
Maximilien28-Sep-06 0:39
Maximilien28-Sep-06 0:39 
QuestionRe: Notepad application Pin
David Crow28-Sep-06 3:11
David Crow28-Sep-06 3:11 

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.