Click here to Skip to main content
16,006,065 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: compare string Pin
Mark Salsbery18-Jul-07 15:35
Mark Salsbery18-Jul-07 15:35 
GeneralRe: compare string Pin
Ram Murali18-Jul-07 15:39
Ram Murali18-Jul-07 15:39 
QuestionRe: compare string Pin
David Crow19-Jul-07 3:18
David Crow19-Jul-07 3:18 
GeneralRe: compare string Pin
Paresh Chitte18-Jul-07 19:18
Paresh Chitte18-Jul-07 19:18 
GeneralRe: compare string Pin
Manish Paul19-Jul-07 0:40
Manish Paul19-Jul-07 0:40 
QuestionRecycle Bin Pin
Yokeldj18-Jul-07 12:05
Yokeldj18-Jul-07 12:05 
QuestionRe: Recycle Bin Pin
Nibu babu thomas19-Jul-07 0:03
Nibu babu thomas19-Jul-07 0:03 
QuestionBM_SETIMAGE doesn't work in XP Pin
kenmckaba18-Jul-07 11:29
kenmckaba18-Jul-07 11:29 
I want to have a button with an icon and text. I used Visual Studio to create a dialog based MFC app and added this to OnInitDialog and made the OK button bigger:

// TODO: Add extra initialization here
HICON voipIcon = (HICON)::LoadImage(AfxGetResourceHandle(),
MAKEINTRESOURCE( IDR_MAINFRAME ),
IMAGE_ICON, 48, 48, LR_DEFAULTCOLOR);

::SendMessage(::GetDlgItem(m_hWnd, IDOK), BM_SETIMAGE, IMAGE_ICON, (LPARAM)voipIcon);

The icon and text appear correctly on Vista, but on XP only the text appears. Also, it only appears under Vista if the manifest has a dependency on Common Controls v6.

If I set the BS_ICON style on the button the icon appears with no text. This is expected behavior based on the MS documentation: http://msdn2.microsoft.com/en-us/library/ms673567.aspx.

Any ideas why the icon and text only appears on Vista? Why does it require Common Controls v6?

Thanks,
Ken
AnswerRe: BM_SETIMAGE doesn't work in XP Pin
Hamid_RT25-Jul-07 8:54
Hamid_RT25-Jul-07 8:54 
QuestionCalling C++ DLL from Matlab using calllib function [modified] Pin
sangigi18-Jul-07 8:11
sangigi18-Jul-07 8:11 
QuestionHide window from taskbar and alt+tab window Pin
Perspx18-Jul-07 6:58
Perspx18-Jul-07 6:58 
AnswerRe: Hide window from taskbar and alt+tab window Pin
Michael Dunn18-Jul-07 7:10
sitebuilderMichael Dunn18-Jul-07 7:10 
GeneralRe: Hide window from taskbar and alt+tab window Pin
Perspx18-Jul-07 7:13
Perspx18-Jul-07 7:13 
GeneralRe: Hide window from taskbar and alt+tab window Pin
Michael Dunn18-Jul-07 7:16
sitebuilderMichael Dunn18-Jul-07 7:16 
GeneralRe: Hide window from taskbar and alt+tab window Pin
Perspx18-Jul-07 7:19
Perspx18-Jul-07 7:19 
GeneralRe: Hide window from taskbar and alt+tab window Pin
David Crow18-Jul-07 7:22
David Crow18-Jul-07 7:22 
GeneralRe: Hide window from taskbar and alt+tab window Pin
Perspx18-Jul-07 7:23
Perspx18-Jul-07 7:23 
GeneralRe: Hide window from taskbar and alt+tab window Pin
James R. Twine18-Jul-07 7:24
James R. Twine18-Jul-07 7:24 
QuestionRe: Hide window from taskbar and alt+tab window Pin
David Crow18-Jul-07 7:19
David Crow18-Jul-07 7:19 
AnswerRe: Hide window from taskbar and alt+tab window Pin
Perspx18-Jul-07 7:21
Perspx18-Jul-07 7:21 
AnswerRe: Hide window from taskbar and alt+tab window Pin
James R. Twine18-Jul-07 7:25
James R. Twine18-Jul-07 7:25 
QuestionClass structure with character array Pin
bsharp5218-Jul-07 5:45
bsharp5218-Jul-07 5:45 
AnswerRe: Class structure with character array Pin
Mark Salsbery18-Jul-07 5:58
Mark Salsbery18-Jul-07 5:58 
GeneralRe: Class structure with character array Pin
bsharp5218-Jul-07 6:21
bsharp5218-Jul-07 6:21 
GeneralRe: Class structure with character array Pin
Mark Salsbery18-Jul-07 6:58
Mark Salsbery18-Jul-07 6:58 

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.