News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

RichEdit

Started by Farabi, May 19, 2007, 11:54:21 AM

Previous topic - Next topic

Farabi

How to create an richedit control on our application?
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

raymond

While creating the main window, I've used the following to make it a rich edit:
.data
  CtlStyle    db    "RichEdit",0
  szRich      db    "RICHED32.DLL",0
.code
WinMain proc
  invoke LoadLibrary,ADDR szRich
WndProc proc
  .elseif uMsg == WM_CREATE
    mov   edx,WS_VISIBLE or WS_CHILDWINDOW or \
    WS_VSCROLL or ES_NOHIDESEL or \
    ES_AUTOVSCROLL or ES_MULTILINE
    invoke CreateWindowEx,WS_EX_CLIENTEDGE,ADDR CtlStyle,NULL,
        edx,0,0,778,558,hWin,799,hInstance,NULL
    mov   hEdit, eax


However, see my other post about the mysterious behaviour of Win98 in the Laboratory section.

Raymond
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

Farabi

Thanks Raymond

How to make the richedit control invisible and reset it back to visible?
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Tedd

Just use the "ShowWindow" function :wink
No snowflake in an avalanche feels responsible.

Farabi

Im using Rectangle function and draw the window color to black, I want my window color change to its original color after the Richedit shows, how to do that. Sorry I ask many question, Its been a while since I do programming again, I forgot most of it.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"