The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => WINDOWS.INC Project => Topic started by: xandaz on December 14, 2010, 06:19:28 PM

Title: TBMETRICS still missing?
Post by: xandaz on December 14, 2010, 06:19:28 PM
   Does anyone know the whereabouts of an updated windows.inc with TBMETRICS struct?

TBMETRICS STRUCT

cbSize               DWORD           ?
dwMask             DWORD           ?
cxPad                DWORD           ?
cyPad                DWORD           ?
cxBarPad           DWORD           ?
cyBarPad           DWORD           ?
cxButtonSpacing DWORD           ?
cyButtonSpacing DWORD           ?

TBMETRICS       ENDS


Someone correct this if its wrong... Thanks and bye
Title: Re: TBMETRICS still missing?
Post by: Vortex on December 14, 2010, 06:41:40 PM
Hi xandaz,

Your structure looks correct. Here is what I found in commctrl.h from Pelles C :

typedef struct {
    UINT cbSize;
    DWORD dwMask;
    int cxPad;
    int cyPad;
    int cxBarPad;
    int cyBarPad;
    int cxButtonSpacing;
    int cyButtonSpacing;
} TBMETRICS, *LPTBMETRICS;
Title: Re: TBMETRICS still missing?
Post by: donkey on December 14, 2010, 06:49:21 PM
Hi xandaz,

Yes, your definition is the same as I have in commctrl.h for GoAsm. Its documented at MSDN:

http://msdn.microsoft.com/en-us/library/bb760482%28VS.85%29.aspx

Until it is added to Windows.inc you can just define it in your project's inc file.
Title: Re: TBMETRICS still missing?
Post by: xandaz on December 14, 2010, 07:31:47 PM
   yeah...got it. Still TB_GETMETRICS msg doesn't seem to work either for BTN or BAR padding and i've put the manifest. Does anyone know why. Sdk says that BAR padding isn't yet working but the BTN padding should work right? Bye
Title: Re: TBMETRICS still missing?
Post by: ToutEnMasm on December 18, 2010, 02:01:56 PM

Quote
Still TB_GETMETRICS msg doesn't seem to work either for BTN or BAR padding
Perhaps a piece of code to test it in differents computer will be useful ?