Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralConnecting to IE Events Pin
Alex Cramer14-Jul-02 16:01
Alex Cramer14-Jul-02 16:01 
GeneralStartup Pin
Dov Sherman14-Jul-02 13:48
Dov Sherman14-Jul-02 13:48 
GeneralRe: Startup Pin
PJ Arends14-Jul-02 15:46
professionalPJ Arends14-Jul-02 15:46 
GeneralRe: Startup Pin
[James Pullicino]15-Jul-02 1:37
[James Pullicino]15-Jul-02 1:37 
Generaltrapping WM_MOUSEMOVE Pin
Steve L.14-Jul-02 12:47
Steve L.14-Jul-02 12:47 
GeneralRe: trapping WM_MOUSEMOVE Pin
Rage14-Jul-02 23:03
professionalRage14-Jul-02 23:03 
QuestionCImageList / CComboBoxEx - what's wrong? Pin
User 665814-Jul-02 11:31
User 665814-Jul-02 11:31 
AnswerRe: CImageList / CComboBoxEx - what's wrong? Pin
Mike Upton14-Jul-02 22:06
Mike Upton14-Jul-02 22:06 
That code looks correct to me, but there are a couple of other things I can think of:

  • Is the m_ctlCombo variable hooked up to the actual control properly? Is there a DDX_Control call for it in the CConfigDlg::DoDataExchange method?

  • Is the control on the dialog resource actually a ComboBoxEx, or is it only a standard ComboBox?


As a very minor point, I don't like the (LPTSTR)(LPCTSTR)string cast, because I tend to think it's bad practice to cast away the const. How about:
cbei.pszText=string.GetBuffer(0);
...
m_ctlCombo.InsertItem(&cbei);
string.ReleaseBuffer();




"We are the knights who say Ni" (The Knights Who Say Ni)
GeneralRe: CImageList / CComboBoxEx - what's wrong? Pin
User 665814-Jul-02 22:24
User 665814-Jul-02 22:24 
GeneralRe: CImageList / CComboBoxEx - what's wrong? Pin
DanielP14-Jul-02 22:56
DanielP14-Jul-02 22:56 
GeneralRe: CImageList / CComboBoxEx - what's wrong? Pin
Mike Upton15-Jul-02 1:54
Mike Upton15-Jul-02 1:54 
GeneralRe: CImageList / CComboBoxEx - what's wrong? Pin
User 665815-Jul-02 8:06
User 665815-Jul-02 8:06 
Questiononly append strings to RTF? Pin
pro14-Jul-02 10:21
pro14-Jul-02 10:21 
AnswerRe: only append strings to RTF? Pin
User 665814-Jul-02 12:18
User 665814-Jul-02 12:18 
GeneralLaunching App by double-clicking on file Pin
Stew14-Jul-02 7:14
Stew14-Jul-02 7:14 
GeneralRe: Launching App by double-clicking on file Pin
Ernest Laurentin14-Jul-02 7:41
Ernest Laurentin14-Jul-02 7:41 
GeneralCImage class Pin
SilentWarrior14-Jul-02 7:13
SilentWarrior14-Jul-02 7:13 
GeneralRe: CImage class Pin
Rama Krishna Vavilala14-Jul-02 7:20
Rama Krishna Vavilala14-Jul-02 7:20 
GeneralFont dialog Pin
Stew14-Jul-02 7:10
Stew14-Jul-02 7:10 
GeneralRe: Font dialog Pin
Ernest Laurentin14-Jul-02 11:42
Ernest Laurentin14-Jul-02 11:42 
GeneralRe: Font dialog Pin
PJ Arends14-Jul-02 15:10
professionalPJ Arends14-Jul-02 15:10 
GeneralMacromedia tool panels. Pin
bisserke14-Jul-02 7:06
bisserke14-Jul-02 7:06 
QuestionDo I need AfxGetMAinWnd to run a mainframe function from a view? Pin
ns14-Jul-02 6:46
ns14-Jul-02 6:46 
AnswerRe: Do I need AfxGetMAinWnd to run a mainframe function from a view? Pin
ns14-Jul-02 6:55
ns14-Jul-02 6:55 
GeneralRe: Do I need AfxGetMAinWnd to run a mainframe function from a view? Pin
Raphael Kindt14-Jul-02 8:17
Raphael Kindt14-Jul-02 8:17 

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.