Log in

View Full Version : Deleting a button (C++)


EJ12N
May 2nd, 2004, 21:34
How can i accomplish this ??....

I would really appreciate if the answer coming using olly

if not is ok...

Thank you

klier
May 3rd, 2004, 07:17
not sure if this is what you want but if you only want to remove a button from a dialog:
use resource hacker(or similar) and delete the button(only possible if button is made in resources).

if button is made in code,load in olly,locate code by search for text(from button) in dump window and put breakpoint memory on access.
fill the code with NOPs.

you can also do the first manually,but this is easier.

Regards,

disavowed
May 3rd, 2004, 08:34
in case klier's ideas don't work, you can also inject code to do ShowWindow(button handle, 0). but i would only do that as a last resort

EJ12N
May 5th, 2004, 19:30
It works thanks