Click here to Skip to main content
15,914,221 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to do repitition of an action ?? Pin
Zeeshan Bilal16-Jun-04 18:38
Zeeshan Bilal16-Jun-04 18:38 
AnswerRe: How to do repitition of an action ?? Pin
toxcct16-Jun-04 20:34
toxcct16-Jun-04 20:34 
GeneralSQLTables Pin
Chitrack16-Jun-04 18:30
Chitrack16-Jun-04 18:30 
GeneralRe: SQLTables Pin
jmkhael16-Jun-04 22:29
jmkhael16-Jun-04 22:29 
Generalget ComboBox item data Pin
zecodela16-Jun-04 17:16
zecodela16-Jun-04 17:16 
GeneralRe: get ComboBox item data Pin
palbano16-Jun-04 17:46
palbano16-Jun-04 17:46 
GeneralRe: get ComboBox item data Pin
RChin16-Jun-04 23:07
RChin16-Jun-04 23:07 
GeneralRe: get ComboBox item data Pin
RChin16-Jun-04 23:17
RChin16-Jun-04 23:17 
You cannot directly store string values into the item data parameter of a combo box. You can only store DWORDs (unsigned long), or other valid numeric casts.

What you may be after is the text that you populate the combobox with. In that case you need to call GetLBText().

e.g.:

<font color=green>// Get and print text of current selection</font>
CString strText;
int nSel = m_ComboBox.GetCurSel();
if( m_ComboBox.GetLBText(nSel, strText) != CB_ERR )
{
  std::cout<< (LPCTSTR)strText << std::endl;
}





I Dream of Absolute Zero

GeneralAdding menu-item in window's right click menu Pin
Anonymous16-Jun-04 16:46
Anonymous16-Jun-04 16:46 
GeneralRe: Adding menu-item in window's right click menu Pin
Indivara16-Jun-04 17:59
professionalIndivara16-Jun-04 17:59 
GeneralLose focus window... Pin
uniqueworld16-Jun-04 16:46
uniqueworld16-Jun-04 16:46 
Generalglobal array pls pls help Pin
Anonymous16-Jun-04 16:24
Anonymous16-Jun-04 16:24 
GeneralRe: global array pls pls help Pin
nguyenvhn16-Jun-04 17:14
nguyenvhn16-Jun-04 17:14 
GeneralRe: global array pls pls help Pin
John R. Shaw17-Jun-04 13:03
John R. Shaw17-Jun-04 13:03 
Generaldll function calls Pin
Member 19033516-Jun-04 14:54
Member 19033516-Jun-04 14:54 
GeneralRe: dll function calls Pin
palbano16-Jun-04 16:08
palbano16-Jun-04 16:08 
GeneralRe: dll function calls Pin
Member 19033516-Jun-04 16:20
Member 19033516-Jun-04 16:20 
Generalplotting cpu and mem consumption Pin
vvim16-Jun-04 14:32
vvim16-Jun-04 14:32 
GeneralRe: plotting cpu and mem consumption Pin
Antony M Kancidrowski17-Jun-04 1:50
Antony M Kancidrowski17-Jun-04 1:50 
GeneralRe: plotting cpu and mem consumption Pin
vvim18-Jun-04 2:25
vvim18-Jun-04 2:25 
GeneralMenubar problem Pin
group716-Jun-04 13:04
group716-Jun-04 13:04 
GeneralRe: Menubar problem Pin
Anthony_Yio16-Jun-04 20:51
Anthony_Yio16-Jun-04 20:51 
GeneralRe: Menubar problem Pin
group716-Jun-04 22:43
group716-Jun-04 22:43 
GeneralRe: Menubar problem Pin
Anthony_Yio16-Jun-04 23:08
Anthony_Yio16-Jun-04 23:08 
Questioninstance name from thread id? Pin
ben216-Jun-04 12:04
ben216-Jun-04 12:04 

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.