Click here to Skip to main content
15,881,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Undelete a File in NTFS Pin
Richard Andrew x6411-Sep-09 18:31
professionalRichard Andrew x6411-Sep-09 18:31 
AnswerRe: Undelete a File in NTFS Pin
«_Superman_»11-Sep-09 20:08
professional«_Superman_»11-Sep-09 20:08 
QuestionHow to decide if GPRS service is down in a C++ application (UDP socket) Pin
nahitan11-Sep-09 16:09
nahitan11-Sep-09 16:09 
QuestionRe: How to decide if GPRS service is down in a C++ application (UDP socket) Pin
Moak12-Sep-09 3:54
Moak12-Sep-09 3:54 
AnswerRe: How to decide if GPRS service is down in a C++ application (UDP socket) Pin
nahitan12-Sep-09 18:16
nahitan12-Sep-09 18:16 
GeneralRe: How to decide if GPRS service is down in a C++ application (UDP socket) Pin
Moak12-Sep-09 22:28
Moak12-Sep-09 22:28 
QuestionProblem with Tooltips for CTabCtrl [modified] Pin
Bob Blean11-Sep-09 14:43
Bob Blean11-Sep-09 14:43 
QuestionHow to use a list ctrl to select an item Pin
Chiman111-Sep-09 10:19
Chiman111-Sep-09 10:19 
I am using a CListCtrl control in may application, where i have 10 iteams in that control.

Now after receiving some input from user , i need to select a particular item from that list.
I have a code where after receiving users input , i am calling myCtrl.SetItemState( itemID, LVIS_SELECTED, LVIS_SELECTED ); to select respective item from that ctrl.

Now it is observed that after executing above line of code, afx_msg void OnSelchanged( NMHDR* pNMHDR, LRESULT* pResult ) is getting called multiple times.

Also when i tried to retrieve selected item in OnSelchanged method , by using ( GetFirstSelectedItemPosition() and GetNextSelectedItem() ), it gives different output every time.

Can you please explain,

i) why this OnSelchanged() method is getting called multiple times whenever myCtrl.SetItemState( itemID, LVIS_SELECTED, LVIS_SELECTED );line of code gets executed.

ii) Why i am getting different output ( id of item selected) after executing GetFirstSelectedItemPosition() and GetNextSelectedItem().
AnswerRe: How to use a list ctrl to select an item Pin
David Crow11-Sep-09 14:25
David Crow11-Sep-09 14:25 
AnswerRe: How to use a list ctrl to select an item Pin
«_Superman_»11-Sep-09 20:22
professional«_Superman_»11-Sep-09 20:22 
QuestionTransparent Bitmaps Pin
kylur11-Sep-09 8:48
kylur11-Sep-09 8:48 
AnswerRe: Transparent Bitmaps Pin
Chris Losinger11-Sep-09 9:03
professionalChris Losinger11-Sep-09 9:03 
GeneralRe: Transparent Bitmaps Pin
kilt14-Sep-09 2:19
kilt14-Sep-09 2:19 
GeneralRe: Transparent Bitmaps Pin
kylur14-Sep-09 2:36
kylur14-Sep-09 2:36 
GeneralRe: Transparent Bitmaps Pin
Chris Losinger14-Sep-09 4:05
professionalChris Losinger14-Sep-09 4:05 
QuestionI need a library file or some program which is similar to bigint() class library in the C++. Pin
nowrocktheworld11-Sep-09 8:32
nowrocktheworld11-Sep-09 8:32 
AnswerRe: I need a library file or some program which is similar to bigint() class library in the C++. Pin
Saurabh.Garg11-Sep-09 22:03
Saurabh.Garg11-Sep-09 22:03 
Question[C++ Error] exception(15): E2141 Declaration syntax error Pin
gordon305611-Sep-09 6:25
gordon305611-Sep-09 6:25 
AnswerRe: [C++ Error] exception(15): E2141 Declaration syntax error Pin
UKM_Student11-Sep-09 6:29
UKM_Student11-Sep-09 6:29 
GeneralRe: [C++ Error] exception(15): E2141 Declaration syntax error Pin
gordon305611-Sep-09 7:52
gordon305611-Sep-09 7:52 
GeneralRe: [C++ Error] exception(15): E2141 Declaration syntax error Pin
UKM_Student11-Sep-09 7:53
UKM_Student11-Sep-09 7:53 
General[C++ Error] exception(15): E2141 Declaration syntax error Pin
gordon305611-Sep-09 8:04
gordon305611-Sep-09 8:04 
GeneralRe: [C++ Error] exception(15): E2141 Declaration syntax error Pin
Maximilien11-Sep-09 8:02
Maximilien11-Sep-09 8:02 
GeneralRe: [C++ Error] exception(15): E2141 Declaration syntax error Pin
Nemanja Trifunovic11-Sep-09 8:06
Nemanja Trifunovic11-Sep-09 8:06 
GeneralThanks to all concerned somehow I got my source labeled variable.cpp.c Pin
gordon305611-Sep-09 8:20
gordon305611-Sep-09 8:20 

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.