News:

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

Subclassing & RichEdit

Started by 0x401000, January 02, 2011, 11:19:45 AM

Previous topic - Next topic

0x401000

Hi!

Please advise how to make a window that was very functional for editing assembler code. For example, to be edited as text, but with additional features like ListView. With the division into columns, single row selection, shedding additional menu and synchronization between the assembler code and binary representation. How else can we do this without Richedit, because information about RichEditSubclassing hardly to found.

Thank you!

jj2007

Study TinyRtf, and when you are ready for concrete questions, post them here.

hutch--

 :bg

Its only because you are looking in the wrong place.

Try the masm32 examples. \example05\riched\richedit.asm

Look at the last 2 procedures in the file,

EditControl proc hParent:DWORD, x:DWORD, y:DWORD, wd:DWORD, ht:DWORD, ID:DWORD

hEditProc proc hCtl   :DWORD,
               uMsg   :DWORD,
               wParam :DWORD,
               lParam :DWORD

The second is the subclass for the edit control.

Once you understand them they are simple. A subclass is just an intercept of the messages processed by an edit control so you can process them yourself OR throw them away.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

0x401000

hutch-- , jj2007

Thank you very much! Indeed, everything was easy. I will study examples, if there are questions, I'll ask you here. So far, everything is clear.