Print Page | Close Window

Adding bitmap on status bar.

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2391
Printed Date: 09 November 2025 at 8:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Adding bitmap on status bar.
Posted By: Mans
Subject: Adding bitmap on status bar.
Date 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);
}



Replies:
Posted By: bevpet
Date Posted: 16 June 2005 at 2:58pm

see:

http://forum.codejock.com/forum_posts.asp?TID=2273 - http://forum.codejock.com/forum_posts.asp?TID=2273 http://forum.codejock.com/forum_posts.asp?TID=2273&KW=statusbar+bitmap -




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net