News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

TBMETRICS still missing?

Started by xandaz, December 14, 2010, 06:19:28 PM

Previous topic - Next topic

xandaz

   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

Vortex

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;

donkey

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.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

xandaz

   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

ToutEnMasm


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 ?