Regarding outlook bar control in codeproject
-
Hello everyone this is a question regarding the outlook bar control on http://www.codeguru.com/controls/outbar.shtml I am having problems drawing the folders. I am using this control with my own view class and I create the splitter windows and call this control on top of it. However I am not able to draw 3 folders. I have added three folders and the one on top seems to be fine but folder 2 and 3 at the bottom dont turn out to be fine. Folder 3 doesnt appear at all(and instead of folder 3 there is whitespace) and only half of folder 2 is seen. So I was wondering if any one can help me out. I tried debugging but cant figure out what the problem is. Thanking you in advance for your help vg
-
Hello everyone this is a question regarding the outlook bar control on http://www.codeguru.com/controls/outbar.shtml I am having problems drawing the folders. I am using this control with my own view class and I create the splitter windows and call this control on top of it. However I am not able to draw 3 folders. I have added three folders and the one on top seems to be fine but folder 2 and 3 at the bottom dont turn out to be fine. Folder 3 doesnt appear at all(and instead of folder 3 there is whitespace) and only half of folder 2 is seen. So I was wondering if any one can help me out. I tried debugging but cant figure out what the problem is. Thanking you in advance for your help vg
Hi vg,
- Try asking in the Visual C++ forum. You'll get a better response if you ask programming questions there.
- Try asking at CodeGuru. Perhaps the author of the article can answer your questions.
Jon Sagara "After all is said and done, usually more is said than done." -- Unknown
-
Hello everyone this is a question regarding the outlook bar control on http://www.codeguru.com/controls/outbar.shtml I am having problems drawing the folders. I am using this control with my own view class and I create the splitter windows and call this control on top of it. However I am not able to draw 3 folders. I have added three folders and the one on top seems to be fine but folder 2 and 3 at the bottom dont turn out to be fine. Folder 3 doesnt appear at all(and instead of folder 3 there is whitespace) and only half of folder 2 is seen. So I was wondering if any one can help me out. I tried debugging but cant figure out what the problem is. Thanking you in advance for your help vg
I don't know what you are doing, but perhaps this section of code which I have used several times to add folders and folder items would help you. class ... : public CSplitterWnd { ... ... private: CGfxOutBarCtrl* m_pShortcutBar; //defined in a ... }; BOOL CDesktopSplitterWnd::BuildFolderBar() { long nImageIndex = 0; int nFolder = 0, nItem = 0; m_pShortcutBar = (CGfxOutBarCtrl*) GetPane(0,0); // Employee Info m_pShortcutBar->AddFolder("Employee Info.", nFolder); nItem = 0; m_pShortcutBar->InsertItem(nFolder, nItem++, STR_SEARCH, nImageIndex++, (DWORD)(&STR_SEARCH)); m_pShortcutBar->InsertItem(nFolder, nItem++, STR_EMPLOYEE, nImageIndex++, (DWORD)(&STR_EMPLOYEE)); m_pShortcutBar->InsertItem(nFolder, nItem++, STR_EMPACTIVITY, nImageIndex++, (DWORD)(&STR_EMPACTIVITY)); nItem = 0; ++nFolder; long nImageIndex = 0; m_pShortcutBar->AddFolder("Compensation Info", nFolder); m_pShortcutBar->InsertItem(nFolder, nItem++, STR_EMPCOMPENSATION, nImageIndex++, (DWORD)(&STR_EMPCOMPENSATION)); m_pShortcutBar->InsertItem(nFolder, nItem++, STR_COMPENSATION, nImageIndex++, (DWORD)(&STR_COMPENSATION)); m_pShortcutBar->InsertItem(nFolder, nItem++, STR_ENTERPRISE, nImageIndex++, (DWORD)(&STR_ENTERPRISE)); nItem = 0; ++nFolder; m_pShortcutBar->AddFolder("Applicant Info", nFolder); m_pShortcutBar->InsertItem(nFolder, nItem++, STR_APPLICANT, EmployeeImage, (DWORD)(&STR_APPLICANT)); } Gaul Gaulles Technologies, Inc. http//www.gaulles.com email: info@gaulles.com or gaulles@worldnet.att.net