Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The WM_SET_TEXT message Pin
RedZenBird26-Sep-02 11:23
RedZenBird26-Sep-02 11:23 
GeneralRe: The WM_SET_TEXT message Pin
Fiffismurf26-Sep-02 11:35
Fiffismurf26-Sep-02 11:35 
GeneralRe: The WM_SET_TEXT message Pin
Jon Hulatt26-Sep-02 22:54
Jon Hulatt26-Sep-02 22:54 
GeneralRe: The WM_SET_TEXT message Pin
Steve S27-Sep-02 0:30
Steve S27-Sep-02 0:30 
GeneralRe: The WM_SET_TEXT message Pin
Shog926-Sep-02 11:56
sitebuilderShog926-Sep-02 11:56 
GeneralRe: The WM_SET_TEXT message Pin
Fiffismurf27-Sep-02 7:13
Fiffismurf27-Sep-02 7:13 
QuestionCannot change transfer var? Pin
jimNLX26-Sep-02 11:07
jimNLX26-Sep-02 11:07 
AnswerRe: Cannot change transfer var? Pin
Gary R. Wheeler29-Sep-02 5:53
Gary R. Wheeler29-Sep-02 5:53 
First, you need to post some code. The following phrases in your description are a little hard to understand:

"indexs start and 10 and go up"
"it just won't take"

Item indices in a combo box control start at 0, and increase to the number of items in the list (minus 1). Period. If you need the selection index to be treated in some other way, you will have to apply that difference each time you retrieve the selection index from the combo box.

Since you are using a 'transfer var', I'll assume you are using MFC's DDX/DDV in a dialog box. Transfer variables are set from the dialog controls each time you call UpdateData(FALSE). Every time you call UpdateData(FALSE), your transfer variable is going to be set to the selection index of the combo box control, regardless of whatever was in the variable beforehand. So, if your transfer variable is m_xfer, and the 4th item in the combo box is selected, then:
m_xfer = 123456;
UpdateData(FALSE);
TRACE("m_xfer = %d\r\n",m_xfer);
will display
m_xfer = 3
in the Output window.


Gary R. Wheeler
QuestionIs there a limit on amt of timers in an app? Pin
JohnnyG26-Sep-02 11:06
JohnnyG26-Sep-02 11:06 
AnswerRe: Is there a limit on amt of timers in an app? Pin
RedZenBird26-Sep-02 11:18
RedZenBird26-Sep-02 11:18 
GeneralRe: Is there a limit on amt of timers in an app? Pin
JohnnyG27-Sep-02 3:17
JohnnyG27-Sep-02 3:17 
GeneralRe: Is there a limit on amt of timers in an app? Pin
RedZenBird27-Sep-02 6:52
RedZenBird27-Sep-02 6:52 
GeneralRe: Is there a limit on amt of timers in an app? Pin
JohnnyG27-Sep-02 9:11
JohnnyG27-Sep-02 9:11 
AnswerRe: Is there a limit on amt of timers in an app? Pin
Shog926-Sep-02 12:12
sitebuilderShog926-Sep-02 12:12 
GeneralDialog boxes and Notification Msg Prob. Pin
Phrozen Banana26-Sep-02 10:53
sussPhrozen Banana26-Sep-02 10:53 
GeneralParsing cmd line arguments in Win32 appl Pin
rsasalm_26-Sep-02 10:41
rsasalm_26-Sep-02 10:41 
GeneralRe: Parsing cmd line arguments in Win32 appl Pin
Jon Hulatt26-Sep-02 22:57
Jon Hulatt26-Sep-02 22:57 
General#define and data types Pin
James A Beggs26-Sep-02 9:33
James A Beggs26-Sep-02 9:33 
GeneralRe: #define and data types Pin
Pavel Klocek26-Sep-02 9:38
Pavel Klocek26-Sep-02 9:38 
GeneralRe: #define and data types Pin
Maciej Pirog26-Sep-02 9:47
Maciej Pirog26-Sep-02 9:47 
GeneralRe: #define and data types Pin
RedZenBird26-Sep-02 10:04
RedZenBird26-Sep-02 10:04 
GeneralRe: #define and data types Pin
James A Beggs26-Sep-02 10:12
James A Beggs26-Sep-02 10:12 
GeneralRe: #define and data types Pin
RedZenBird26-Sep-02 11:25
RedZenBird26-Sep-02 11:25 
QuestionWhat's a LARGE_INTEGER, and where is it defined? Pin
Anonymous26-Sep-02 8:57
Anonymous26-Sep-02 8:57 
AnswerRe: What's a LARGE_INTEGER, and where is it defined? Pin
lucy26-Sep-02 9:19
lucy26-Sep-02 9:19 

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.