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

C / C++ / MFC

 
GeneralRe: Creating an object Pin
SAV6-Dec-02 18:35
SAV6-Dec-02 18:35 
GeneralShow window content while dragging... Pin
Neha5-Dec-02 17:03
Neha5-Dec-02 17:03 
GeneralRe: Show window content while dragging... Pin
Paul M Watt5-Dec-02 17:12
mentorPaul M Watt5-Dec-02 17:12 
GeneralRe: Show window content while dragging... Pin
Shog95-Dec-02 17:45
sitebuilderShog95-Dec-02 17:45 
GeneralRe: Show window content while dragging... Pin
Nyil14-Jul-08 1:36
Nyil14-Jul-08 1:36 
GeneralSet MainFrame's back color Pin
Anonymous5-Dec-02 17:00
Anonymous5-Dec-02 17:00 
GeneralRe: Set MainFrame's back color Pin
sonshiro5-Dec-02 17:51
sonshiro5-Dec-02 17:51 
GeneralSelecting a Row In a ListView Control Pin
Anonymous5-Dec-02 16:36
Anonymous5-Dec-02 16:36 
Hi everyone. I have a listview control, in which some items are loaded into when the dialog it is on initalizes. I want to select the first row, that is, have the first row selected so it is highlighted, and will return the row datas when I do . I tried the following code, where 0 is the first row (0), 1 is to set the selected flag active, and LVIS_SELECTED is the selected flag I wish to change:
<br />
m_lvwEMails.SetItemState(0, 1, LVIS_SELECTED);<br />


This does not highlight the first row, nor does it return the selected row when I do the following
<br />
iSelected = m_lvwEMails.GetNextItem(-1, LVNI_SELECTED);<br />


I have tried every permutation of this code, and putting it in different spots in code. No luck, nor does this work with other list views in my program. All list views are fully functional and work as expected otherwise. All list views are set to report style. Anyone know what I might be doing wrong?
GeneralRe: Selecting a Row In a ListView Control Pin
Shog95-Dec-02 17:49
sitebuilderShog95-Dec-02 17:49 
GeneralRe: Selecting a Row In a ListView Control Pin
Jeff J5-Dec-02 18:32
Jeff J5-Dec-02 18:32 
GeneralRe: Selecting a Row In a ListView Control Pin
Shog95-Dec-02 19:30
sitebuilderShog95-Dec-02 19:30 
GeneralRe: Selecting a Row In a ListView Control Pin
Jeff J5-Dec-02 18:26
Jeff J5-Dec-02 18:26 
QuestionFunction in the article NOT defined! Can use it? Pin
zhdleonid5-Dec-02 15:33
zhdleonid5-Dec-02 15:33 
AnswerRe: Function in the article NOT defined! Can use it? Pin
Chris Losinger5-Dec-02 15:48
professionalChris Losinger5-Dec-02 15:48 
GeneralRe: Function in the article NOT defined! Can use it? Pin
zhdleonid5-Dec-02 20:20
zhdleonid5-Dec-02 20:20 
GeneralProblem with resizing in the Windows XP ! Help ! Pin
Pavel Sokolov5-Dec-02 15:31
Pavel Sokolov5-Dec-02 15:31 
GeneralCFileDialog problem, lock and not return ! Pin
jslee5-Dec-02 15:02
jslee5-Dec-02 15:02 
GeneralRe: CFileDialog problem, lock and not return ! Pin
Nitron6-Dec-02 13:55
Nitron6-Dec-02 13:55 
GeneralMSVC Multi Build/Use Configs Pin
Garth J Lancaster5-Dec-02 14:04
professionalGarth J Lancaster5-Dec-02 14:04 
QuestionCRichEdit with embedded .rtf? Pin
paposo5-Dec-02 13:07
paposo5-Dec-02 13:07 
AnswerRe: CRichEdit with embedded .rtf? Pin
Nitron6-Dec-02 13:51
Nitron6-Dec-02 13:51 
GeneralRe: CRichEdit with embedded .rtf? Pin
Anonymous7-Dec-02 4:52
Anonymous7-Dec-02 4:52 
GeneralKeyboard Monitoring Pin
Don Grout5-Dec-02 12:01
Don Grout5-Dec-02 12:01 
GeneralRe: Keyboard Monitoring Pin
Paul M Watt5-Dec-02 12:35
mentorPaul M Watt5-Dec-02 12:35 
GeneralRe: Keyboard Monitoring Pin
Don Grout5-Dec-02 19:42
Don Grout5-Dec-02 19:42 

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.