Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Open default application for associated file Pin
ness41630-Jun-04 7:11
ness41630-Jun-04 7:11 
GeneralRe: Open default application for associated file Pin
palbano30-Jun-04 7:14
palbano30-Jun-04 7:14 
GeneralRe: Open default application for associated file Pin
Blake Miller30-Jun-04 7:34
Blake Miller30-Jun-04 7:34 
GeneralTransparent icons on a toolbar buttons Pin
Daredevil30-Jun-04 6:08
Daredevil30-Jun-04 6:08 
GeneralRe: Transparent icons on a toolbar buttons Pin
GermanGeorge1-Jul-04 2:00
GermanGeorge1-Jul-04 2:00 
GeneralRe: Transparent icons on a toolbar buttons Pin
Elmue16-Oct-09 9:22
Elmue16-Oct-09 9:22 
QuestionRe: Transparent icons on a toolbar buttons Pin
lakshmanguru23-Feb-10 11:40
lakshmanguru23-Feb-10 11:40 
GeneralRe: Transparent icons on a toolbar buttons Pin
Mahadev HK5-Aug-11 2:33
Mahadev HK5-Aug-11 2:33 
C#
Hi, Try the below code. It will work for sure.

    if (!m_wndToolBarMaha.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
        | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC ) )
    {
        TRACE0("Failed to create toolbar\n");
        return -1;      // fail to create
    }

    CWinApp* pApp= AfxGetApp();
    m_TBarImages.Create(32, 32, ILC_COLOR, 4, 4);
    m_TBarImages.SetBkColor( RGB( 192, 192, 192 ) );
    m_TBarImages.Add(pApp->LoadIcon(IDI_ICON1));
    m_TBarImages.Add(pApp->LoadIcon(IDI_ICON2));
    m_TBarImages.Add(pApp->LoadIcon(IDI_ICON3));
    m_wndToolBarMaha.GetToolBarCtrl().SetImageList(&m_TBarImages);

    m_wndToolBarMaha.LoadToolBar(IDR_MAINFRAME);

    // TODO: Delete these three lines if you don't want the toolbar to be dockable
    m_wndToolBarMaha.EnableDocking(CBRS_ALIGN_ANY);
    EnableDocking(CBRS_ALIGN_ANY);
    DockControlBar(&m_wndToolBarMaha);

Mahadev

QuestionHow to refresh the ActiveX Property Browser? Pin
Daed30-Jun-04 6:01
Daed30-Jun-04 6:01 
GeneralActiveX ListBox Pin
Roger Art30-Jun-04 5:55
sussRoger Art30-Jun-04 5:55 
GeneralRe: ActiveX ListBox Pin
Jaime Stuardo30-Jun-04 7:04
Jaime Stuardo30-Jun-04 7:04 
GeneralRe: ActiveX ListBox Pin
rogerart30-Jun-04 7:46
sussrogerart30-Jun-04 7:46 
GeneralRe: ActiveX ListBox Pin
Jaime Stuardo30-Jun-04 9:17
Jaime Stuardo30-Jun-04 9:17 
GeneralRe: ActiveX ListBox Pin
Roger Art30-Jun-04 10:56
sussRoger Art30-Jun-04 10:56 
GeneralRe: ActiveX ListBox Pin
Roger Art30-Jun-04 10:56
sussRoger Art30-Jun-04 10:56 
GeneralRe: ActiveX ListBox Pin
Jaime Stuardo1-Jul-04 4:21
Jaime Stuardo1-Jul-04 4:21 
GeneralLooking for C++ Programmers in India Pin
Arun Gandhi30-Jun-04 5:38
Arun Gandhi30-Jun-04 5:38 
GeneralDependency Detection Pin
Joseph Dempsey30-Jun-04 4:58
Joseph Dempsey30-Jun-04 4:58 
GeneralRe: Dependency Detection Pin
David Crow30-Jun-04 5:58
David Crow30-Jun-04 5:58 
GeneralRe: Dependency Detection Pin
palbano30-Jun-04 6:18
palbano30-Jun-04 6:18 
QuestionHow to prevent setting focus to modeless dialog ? Pin
rrrado30-Jun-04 4:02
rrrado30-Jun-04 4:02 
AnswerRe: How to prevent setting focus to modeless dialog ? Pin
GermanGeorge1-Jul-04 2:03
GermanGeorge1-Jul-04 2:03 
Generalglobal connection to db Pin
JabraJabra30-Jun-04 2:18
JabraJabra30-Jun-04 2:18 
GeneralRe: global connection to db Pin
David Crow30-Jun-04 2:55
David Crow30-Jun-04 2:55 
GeneralSorry... Pin
JabraJabra30-Jun-04 3:00
JabraJabra30-Jun-04 3:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.