Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbar Gripper - and How to remove it
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Toolbar Gripper - and How to remove it
Divers
Thread ID:
00899734
Message ID:
00899734
Vues:
65
Hi!

How can I remove the Gripper of my docked Toolbar (See Gripper here http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/faq/ietoolbar.asp)

Possibly there is an API... but I dont know how to use it:

Found something in Visual Basic but don't know how to implement this into Fox.
It must be used with something like this in toolbar.paint Method:
RB_SETBANDINFO = 1025
RebarBand.fMask = RBBIM_COLORS Or RBBIM_IMAGE Or RBBIM_BACKGROUND Or ;
RBBS_FIXEDBMP Or RBBIM_CHILD Or RBBIM_CHILDSIZE Or ;
RBBIM_ID Or RBBIM_STYLE Or RBBIM_TEXT Or RBBS_BREAK Or RBS_FIXEDORDER Or ;
RBBS_FIXEDSIZE
SendMessage(n_toolbar_hWnd, RB_SETBANDINFO, nCount, RebarBand)

The Rebarband Object Type is this:

Private Type tagRebarBandInfo
cbSize As Long
fMask As Long
fStyle As Long
clrFore As Long
clrBack As Long
lpText As String
cch As Long
iImage As Long
hWndChild As Long
cxMinChild As Long
cyMinChild As Long
cx As Long
hbmBack As Long
wID As Long
End Type

Overpainting them does not help, because I need the Space.

Misrosoft MSDN say this:
The grippers are included by default. To omit the gripper for a band, set the RBBS_NOGRIPPER flag in the fStyle member of the band's REBARBANDINFO structure. For further information on implementing rebar controls, see Rebar Controls.
See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/rebar/reflist.asp


I just posted this one in the Classes, but I think it is not correct there because VFP6 hasn't got a gripper for a toolbar.

Thank you
Marvin Blase (tA-logistic Software GmbH)
You'll never notice the good things if you haven't seen the bad.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform