Click here to Skip to main content
15,912,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: change filename Pin
2-Jul-01 15:21
suss2-Jul-01 15:21 
GeneralRe: change filename Pin
3-Jul-01 5:22
suss3-Jul-01 5:22 
GeneralCOM IDL Pin
William Bartholomew2-Jul-01 12:42
William Bartholomew2-Jul-01 12:42 
GeneralRe: COM IDL Pin
Richard Caetano2-Jul-01 13:43
Richard Caetano2-Jul-01 13:43 
GeneralRe: COM IDL Pin
Richard Caetano2-Jul-01 13:47
Richard Caetano2-Jul-01 13:47 
GeneralAudio looping using waveform functions. Pin
2-Jul-01 10:47
suss2-Jul-01 10:47 
GeneralCStatusBarCtrl::SetIcon Pin
Rickard Andersson202-Jul-01 9:42
Rickard Andersson202-Jul-01 9:42 
GeneralRe: CStatusBarCtrl::SetIcon Pin
Michael Martin2-Jul-01 13:50
professionalMichael Martin2-Jul-01 13:50 
Rickard

unfortunately I do not have an answer for this, but a few observations that might help you to figure it out.

When you say the icon is big I assume that this is the 32 x 32 icon when you will be needing to display the 16 x 16 icon. CStatusBarCtrl::SetIcon doesn't seem to have any way to choose the icon size, and OnInitDialog uses CWnd::SetIcon to set the 32 x 32 and the 16 x 16 icon. CWnd::SetIcon returns a HICON so maybe if you create a member variable m_hSmallIcon and in OnInitDialog change the line to m_hSmallIcon = SetIcon(m_hIcon, FALSE) you can then use m_hSmallIcon in the call to CStatusBarCtrl::SetIcon.

Hope this helps.

Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
GeneralProblem importing mso97.dll Pin
Jamie Nordmeyer2-Jul-01 9:09
Jamie Nordmeyer2-Jul-01 9:09 
GeneralRe: Problem importing mso97.dll Pin
Jamie Nordmeyer2-Jul-01 12:35
Jamie Nordmeyer2-Jul-01 12:35 
GeneralRe: Problem importing mso97.dll Pin
Bret Faller3-Jul-01 8:47
Bret Faller3-Jul-01 8:47 
GeneralDynamic query ... Pin
Hadi Rezaee2-Jul-01 8:32
Hadi Rezaee2-Jul-01 8:32 
GeneralRe: Dynamic query ... Pin
Carlos Antollini2-Jul-01 15:20
Carlos Antollini2-Jul-01 15:20 
GeneralRe: Dynamic query ... Pin
Hadi Rezaee2-Jul-01 17:10
Hadi Rezaee2-Jul-01 17:10 
GeneralProblem calling .exe from a dll Pin
2-Jul-01 7:23
suss2-Jul-01 7:23 
GeneralRe: Problem calling .exe from a dll Pin
2-Jul-01 9:10
suss2-Jul-01 9:10 
GeneralRe: Problem calling .exe from a dll Pin
#realJSOP3-Jul-01 5:35
professional#realJSOP3-Jul-01 5:35 
GeneralCOM crashing Pin
Chris Klecker2-Jul-01 7:03
Chris Klecker2-Jul-01 7:03 
GeneralADO Pin
Gérald Mercet2-Jul-01 6:41
Gérald Mercet2-Jul-01 6:41 
GeneralRe: ADO Pin
Carlos Antollini2-Jul-01 6:58
Carlos Antollini2-Jul-01 6:58 
Generalbinding member variables Pin
2-Jul-01 5:13
suss2-Jul-01 5:13 
GeneralRe: binding member variables Pin
3-Jul-01 5:29
suss3-Jul-01 5:29 
GeneralReturn variable Pin
Giuseppe Vitali2-Jul-01 0:19
Giuseppe Vitali2-Jul-01 0:19 
GeneralRe: Return variable Pin
Anders Molin2-Jul-01 4:49
professionalAnders Molin2-Jul-01 4:49 
GeneralRe: Return variable Pin
Giuseppe Vitali2-Jul-01 5:54
Giuseppe Vitali2-Jul-01 5:54 

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.