The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => Easy Code => Topic started by: vanjast on January 03, 2012, 05:36:26 PM

Title: Using the group object to control..
Post by: vanjast on January 03, 2012, 05:36:26 PM
I think I'm a bit dense today (maybe always  :green2).
I cannot figure out how to create a windows procedure for the 'group' object.

The idea is to control all the controls contained in a particular group within a tab object.

thanks for any input
Title: Re: Using the group object to control..
Post by: dedndave on January 03, 2012, 05:39:39 PM
WS_GROUP, WS_TABSTOP
Title: Re: Using the group object to control..
Post by: Ramon Sala on January 03, 2012, 08:44:05 PM
Hi vanjast,

If you are using Easy Code, the procedure for a Group object (just for visual projects) must be the name of the window where the Group is, plus its own name (both case sensitive). For example, for a Group named Group1 being inside a window named Window1, the procedure for the Group has to be named Window1Group1:

Window1Group1 Proc hWnd:HWND, uMsg:ULONG, wParam:WPARAM, lParam:LPARAM
    .If uMsg == ...

    .ElseIf uMsg == ...

    .EndIf
    Xor Eax, Eax
    Ret
Window1Group1 EndP


But remember that, in visual projects, the WM_COMMAND and WM_NOTIFY messages send by child controls are received by the owner window even if they are children of a Group or a Picture.

Hope that can help you.
Title: Re: Using the group object to control..
Post by: vanjast on January 04, 2012, 05:18:56 PM
Thank you kind sirs... for making me clever again  :green2