thiefmaster
Programmer
I'm having trouble using a rich edit text box. Here's the code I'm using.
LoadLibrary("Riched20.dll"
;
hwndObject = CreateWindowEx( WS_EX_CLIENTEDGE,
TEXT("RICHEDIT_CLASS"
,
TEXT("me"
,
WS_CHILD | WS_VISIBLE | ES_READONLY,
300,
50,
100,
25,
hwnd,
(HMENU) ID_TXT_2,
((LPCREATESTRUCT) lParam) -> hInstance,
NULL);
When I start the program though, it doesn't show up. This is the same createwindowex call that i made with an edit box, but I can't seem to get it to show the rich edit box.
Any ideas?
Also related to Rich Edit boxes: once I do get it to display it, how can i superscript only a section of the string. eg. if i have something like 3.6 X 10^9, how can i make it say 3.6 X 10 with the 9 superscripted? (including how to remove the ^ easily...)
Any thoughts on this would help...
thiefmaster
LoadLibrary("Riched20.dll"
hwndObject = CreateWindowEx( WS_EX_CLIENTEDGE,
TEXT("RICHEDIT_CLASS"
TEXT("me"
WS_CHILD | WS_VISIBLE | ES_READONLY,
300,
50,
100,
25,
hwnd,
(HMENU) ID_TXT_2,
((LPCREATESTRUCT) lParam) -> hInstance,
NULL);
When I start the program though, it doesn't show up. This is the same createwindowex call that i made with an edit box, but I can't seem to get it to show the rich edit box.
Any ideas?
Also related to Rich Edit boxes: once I do get it to display it, how can i superscript only a section of the string. eg. if i have something like 3.6 X 10^9, how can i make it say 3.6 X 10 with the 9 superscripted? (including how to remove the ^ easily...)
Any thoughts on this would help...
thiefmaster