Click here to Skip to main content
15,917,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCursor change Pin
Dennis L11-Nov-02 1:58
Dennis L11-Nov-02 1:58 
GeneralRe: Cursor change Pin
KarstenK11-Nov-02 2:20
mveKarstenK11-Nov-02 2:20 
GeneralRe: Cursor change Pin
vgkotha11-Nov-02 4:25
vgkotha11-Nov-02 4:25 
GeneralRe: Cursor change Pin
Anonymous11-Nov-02 5:02
Anonymous11-Nov-02 5:02 
GeneralRe: Cursor change Pin
jhwurmbach11-Nov-02 22:14
jhwurmbach11-Nov-02 22:14 
GeneralRe: Cursor change Pin
georgiek5012-Nov-02 4:02
georgiek5012-Nov-02 4:02 
GeneralAdding a pane to the Status Bar. Pin
WREY11-Nov-02 1:29
WREY11-Nov-02 1:29 
GeneralRe: Adding a pane to the Status Bar. Pin
Anonymous11-Nov-02 1:54
Anonymous11-Nov-02 1:54 
I did the following in my CMainFrame::OnCreate() function. I have a SDI application and wanted a button added to the status bar.
It may not be what you are looking for, but may inspire you in the correct direction.

// The following code allows a button to be added to the status bar
// Add an indicator, with width, ..
m_wndStatusBar.AddIndicator( 1, IDC_BUTTON_STATUS_BAR );

int idx = m_wndStatusBar.CommandToIndex( IDC_BUTTON_STATUS_BAR );
m_wndStatusBar.SetPaneWidth( idx, 15 );
m_wndStatusBar.SetPaneStyle( idx, m_wndStatusBar.GetPaneStyle( idx ) | SBPS_NOBORDERS );

// Create a pane window, and append it to status bar
m_pBtnCommStatus = new CButton;
m_pBtnCommStatus->Create( _T(""), WS_CHILD | WS_VISIBLE | BS_FLAT | BS_BITMAP, CRect(0, 0, 0, 0), &m_wndStatusBar, IDC_BUTTON_STATUS_BAR );

HINSTANCE hInstance = AfxGetInstanceHandle();

// Set the Icon for the button on the status bar.
m_pBtnCommStatus->SetBitmap( ::LoadBitmap( hInstance, MAKEINTRESOURCE(IDB_BITMAP5) ) );

m_wndStatusBar.AddControl( m_pBtnCommStatus, IDC_BUTTON_STATUS_BAR );

Hope this helps

regards
General??? error Pin
Anonymous11-Nov-02 1:19
Anonymous11-Nov-02 1:19 
GeneralRe: ??? error Pin
WREY11-Nov-02 1:34
WREY11-Nov-02 1:34 
GeneralRe: ??? error Pin
Anonymous11-Nov-02 1:46
Anonymous11-Nov-02 1:46 
GeneralRe: ??? error Pin
WREY11-Nov-02 2:33
WREY11-Nov-02 2:33 
GeneralRe: ??? error Pin
Tim Smith11-Nov-02 3:52
Tim Smith11-Nov-02 3:52 
GeneralRe: ??? error Pin
cradle11-Nov-02 1:37
cradle11-Nov-02 1:37 
GeneralRe: ??? error Pin
Anonymous11-Nov-02 2:23
Anonymous11-Nov-02 2:23 
Questionwhat can happen? (Creating controls on the fly with the same resource name...) Pin
Joan M11-Nov-02 1:15
professionalJoan M11-Nov-02 1:15 
AnswerRe: what can happen? (Creating controls on the fly with the same resource name...) Pin
567890123411-Nov-02 3:43
567890123411-Nov-02 3:43 
General_outp problem Pin
viliam11-Nov-02 0:39
viliam11-Nov-02 0:39 
GeneralRe: _outp problem Pin
Daniel Turini11-Nov-02 0:52
Daniel Turini11-Nov-02 0:52 
Generalprocessor usage Pin
Josus10-Nov-02 23:42
Josus10-Nov-02 23:42 
GeneralDLL problem!!!! Pin
cradle10-Nov-02 23:18
cradle10-Nov-02 23:18 
GeneralRe: DLL problem!!!! Pin
Stephane Rodriguez.10-Nov-02 23:28
Stephane Rodriguez.10-Nov-02 23:28 
GeneralRe: DLL problem!!!! Pin
dabs10-Nov-02 23:40
dabs10-Nov-02 23:40 
GeneralRe: DLL problem!!!! Pin
cradle11-Nov-02 0:53
cradle11-Nov-02 0:53 
GeneralRe: DLL problem!!!! Pin
dabs11-Nov-02 1:49
dabs11-Nov-02 1:49 

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.