PDA

View Full Version : Sub menu item is disable always


megatron
January 28th, 2009, 12:28
I am facing a problem where a menu which is disabled by default (when the window is launched). I want to put the breakpoint on the logic which is disabling it. Is there a way to do this?

fr33ke
January 30th, 2009, 12:10
Try setting a breakpoint on EnableWindow. Another way would be to investigate the init procedure, e.g. the WM_INIT branch of the window procedure for raw WinAPI, the OnInit function for MFC, FormCreate/FormShow for Delphi, etc.