Originally posted by: gal
hey everybody?
how do i generate a code for a simple
scale roller on the side of the client area
in my program ???
(in mfc project)
Originally posted by: Scruj
Hi!
Does evrybody know, in which way I can add a feature of moving, insertion and deletion of inserted controls?
By default, ToolBar Refused to work with them as separators, but may be there are another ways without recoding drag&drop operations?
Originally posted by: SS
There are painting problems when it is in vertical position (docked left, instead of top). But if it is dragged out as a floating tool bar and then docked back manually, it repaints it right. Would any of u have a fix for this, instead of having to do it manually.
thanks,
SS
Reply
Originally posted by: Juan Carlos Urbina
Hi
Nice work with the Customizable Toolbar.
Do you know how to fix the painting problems when it is in vertical position?
I saw that there was a code to be added to be able to customize it when it is
floating, but for some reason I don't get the customizable dialog window. I see
that OnPopupCustomize is called but I don't get the window.
Do you know why?
Thanks
JC
Reply
Originally posted by: john
i am trying to add a print function to a dialog based application. what a nightmare. never try this unless you have to. anyway, it's fairly simple to make the print icon on a toolbar and have it displayed on the top of the dialog as a non dockable, but i cannot get the print function to work. i've tried a million things like treating it like a regular dialog button , calling it idc_print, getting onprint to print to default printer, but the pages are blank, the screen dialog image is not captured before sending to the printer. there is no cview class in a dialog program, should i create one? does anyone know explicitly what i need to change in the code and in what class to make a stupid dialog program print out???? any help would be greatly appreciated.
thanks
john lost in a dialog app
Originally posted by: Aliaksei Sanko
Nice code, but it is not always convenient to mountain arrays with buttons information and names. It is simpler to take it from the resource. Here is a code peace implementing it:
From ToolBarCustom.h:
struct CToolBarInfo
{
TBBUTTON tbButton; // information regarding the button
CString strText; // text for the button
};
From ToolBarCustom.cpp:
BOOL CToolBarCustom::OnLoadToolbar()
// After standard LoadToolbar(UINT nIDResource)
{
m_nButtons = GetToolBarCtrl().GetButtonCount();
m_pToolBarInfo = new CToolBarInfo[m_nButtons];
for (int i = 0; i < m_nButtons; i++)
{
TBBUTTON& tbButton = m_pToolBarInfo[i].tbButton;
UINT uStyle;
GetButtonInfo(i, (UINT&)tbButton.idCommand, uStyle, tbButton.iBitmap);
tbButton.fsStyle = uStyle;
if (TBSTYLE_SEP == uStyle)
tbButton.iBitmap = 0;
tbButton.fsState = TBSTATE_ENABLED;
tbButton.dwData = 0;
tbButton.iString = i;
CString strText;
// String for status bar & tooltips used
strText.LoadString(tbButton.idCommand);
int nCRPos = strText.Find(_T('\n'));
if (nCRPos != -1)
strText = strText.Left(nCRPos);
m_pToolBarInfo[i].strText = strText;
}
ModifyStyle(0, CCS_ADJUSTABLE);
RestoreState();
return TRUE;
}
Originally posted by: lucy
Hi,
I'm eager to get your answer anyway.
Now I meet a problem in my VBA coding procedure.Recently I'm trying to solve a problem by VBA programming.When I designed and realized the solution in WORD2000, I thought I had almost finish my work. But after I copy the WORD template including the code to another computer which installed WORD97 but not WORD2000, I found it couldn't work normally. My goad is to add a commandbar into the WORD and when people click a button of 3 ones in that bar the code will precess respective function. But Office 8.0 Object Libraby don't support "WithEvents" definition. I can only add the buttons but can't make the button response the click event. I tried to solve the problem though "OnAction" property of Object(Office.CommandBarButton), but it can't work as MSDN said at all. I can't think of any effective method. So I need help. I hope u will understand my puzzleness.
Thank u . :)
Lucy.H.Zhang
Originally posted by: zhiyu liu
Do you know how to set the Toolbar to be the Two-columns and
vertical Style.and it has Floating style too.
thanks.