The MASM Forum

General => The Campus => Topic started by: ragdog on March 30, 2013, 01:59:35 AM

Title: Masked editcontrol
Post by: ragdog on March 30, 2013, 01:59:35 AM
Hi

I coding a masked editcontrol this allowes only hex
and add automatically all 3te char a space.

It works fine but have i change hex bytes in this control
example:

11 22 11 11

i wish to change 22 to 33 works fine but add i after 22 byte to 44 is my cursel wrong

Have you an idea?

I want it to work like in OllyDbg Search for>> binary string edit control


Greets
Title: Re: Masked editcontrol
Post by: Tedd on March 31, 2013, 04:16:04 AM
Process the EN_UPDATE notification (inside WM_COMMAND) -- this will be sent when the text is changed by the user.
Then you can get the text, insert the correct spacing, and set the text correctly.