Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Adding bitmap on status bar.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Adding bitmap on status bar.

 Post Reply Post Reply
Author
Message
Mans View Drop Down
Newbie
Newbie


Joined: 16 June 2005
Location: India
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mans Quote  Post ReplyReply Direct Link To This Post Topic: Adding bitmap on status bar.
    Posted: 16 June 2005 at 9:01am
I want to add a bitmap on the Status bar ( Xtreme Toolkit's Status Bar ) 

The ID of the Bitmap in the resource is "IDB_SOME_LOGO1". Below is the code snipet i have used and on execution it does not show the bitmap !

Please help me and let me know what has to be done to load a bitmap. If I specify an ICON file it shows up properly.


Code

int iIndex = m_XTwndStatusBar.GetPaneCount();

if (!m_wndIconPane.Create(NULL, &m_XTwndStatusBar))
{
TRACE0("Failed to create icon pane.\n");
return;
}

//add the indicator to the status bar.
m_XTwndStatusBar.AddIndicator( ID_INDICATOR_BITMAP , 0);

// Initialize the pane info and add the control.
int nIndex = m_XTwndStatusBar.CommandToIndex(ID_INDICATOR_BITMAP);
ASSERT (nIndex != -1);

m_wndIconPane.SetPaneIcon(IDB_SOME_LOGO1);
m_XTwndStatusBar.SetPaneWidth(nIndex, 100 );
m_XTwndStatusBar.AddControl(&m_wndIconPane, ID_INDICATOR_BITMAP, FALSE);
}
Back to Top
bevpet View Drop Down
Newbie
Newbie
Avatar

Joined: 01 April 2005
Location: Canada
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote bevpet Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2005 at 2:58pm
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.033 seconds.