Click here to Skip to main content
15,910,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAutomating applications Pin
pankaj2-Jun-00 10:09
pankaj2-Jun-00 10:09 
GeneralRe: Automating applications Pin
PPEscher4-Jun-00 23:11
sussPPEscher4-Jun-00 23:11 
GeneralSaving Applications Pin
pjp2-Jun-00 10:06
pjp2-Jun-00 10:06 
GeneralUI Thread's in a Simple Dialog Pin
Andy Bantly2-Jun-00 9:06
Andy Bantly2-Jun-00 9:06 
GeneralEditBox & Dialog size (MFC) Pin
Member 43482-Jun-00 8:14
Member 43482-Jun-00 8:14 
GeneralRe: EditBox & Dialog size (MFC) Pin
Erik Thompson2-Jun-00 8:58
sitebuilderErik Thompson2-Jun-00 8:58 
GeneralEditBox & Dialog size Pin
Member 43482-Jun-00 7:10
Member 43482-Jun-00 7:10 
GeneralRe: EditBox & Dialog size Pin
Erik Thompson2-Jun-00 8:07
sitebuilderErik Thompson2-Jun-00 8:07 
Since you haven't specified MFC or API, I'll assume API and then you can apply it to MFC if you need.

In the WM_SIZE handler for your dialog, call SetWindowPos with the HWND of your edit box to change the window position and size. Or you can call MoveWindow with the HWND of your edit box. Move Window is a simpler call.

SetWindowPos documentation
http://msdn.microsoft.com/library/psdk/winui/windows_2blf.htm
MoveWindow documentation
http://msdn.microsoft.com/library/psdk/winui/windows_92nr.htm

Then to change the font of your edit box, you need to use SendMessage with the window message WM_SETFONT.

SetFont documentation.
http://msdn.microsoft.com/library/psdk/winui/controls_7v90.htm

Hope this helps,
-Erik
GeneralObject Browser Implementation Pin
Chris2-Jun-00 6:21
Chris2-Jun-00 6:21 
GeneralResizing text to fit in rect Pin
Jason Phillips2-Jun-00 5:58
Jason Phillips2-Jun-00 5:58 
GeneralRe: Resizing text to fit in rect Pin
Mike Dunn2-Jun-00 15:32
Mike Dunn2-Jun-00 15:32 
GeneralSerial COM on MOXA cards when > COM9 and using Win32 API on NT Pin
GBO2-Jun-00 5:14
GBO2-Jun-00 5:14 
GeneralRe: Serial COM on MOXA cards when > COM9 and using Win32 API on NT Pin
GBO4-Jun-00 22:30
GBO4-Jun-00 22:30 
QuestionMonikers?? Pin
mahesh2-Jun-00 2:32
mahesh2-Jun-00 2:32 
General"Pluggable Protocols"?? Pin
mahesh1-Jun-00 10:50
mahesh1-Jun-00 10:50 
GeneralSetTimer doesn't work Pin
Member 117662571-Jun-00 7:03
Member 117662571-Jun-00 7:03 
GeneralRe: SetTimer doesn't work Pin
Dmitriy1-Jun-00 9:54
Dmitriy1-Jun-00 9:54 
GeneralRe: SetTimer doesn't work Pin
Member 117662571-Jun-00 11:52
Member 117662571-Jun-00 11:52 
GeneralRe: SetTimer doesn't work Pin
Dmitriy2-Jun-00 4:14
Dmitriy2-Jun-00 4:14 
GeneralRe: SetTimer doesn't work Pin
Member 117662572-Jun-00 6:12
Member 117662572-Jun-00 6:12 
GeneralRe: SetTimer doesn't work Pin
Dmitriy2-Jun-00 4:15
Dmitriy2-Jun-00 4:15 
GeneralRe: SetTimer doesn't work Pin
Andy Bantly2-Jun-00 8:54
Andy Bantly2-Jun-00 8:54 
GeneralRe: SetTimer doesn't work Pin
Member 117662572-Jun-00 9:35
Member 117662572-Jun-00 9:35 
GeneralRe: SetTimer doesn't work Pin
Paul Hooper6-Jun-00 18:10
Paul Hooper6-Jun-00 18:10 
GeneralRe: SetTimer doesn't work Pin
Stephen Kellett15-Jun-00 8:15
Stephen Kellett15-Jun-00 8:15 

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.