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

C / C++ / MFC

 
GeneralRe: save and load dynamic struct, need help ... Pin
includeh1013-Aug-02 8:53
includeh1013-Aug-02 8:53 
GeneralRe: save and load dynamic struct, need help ... Pin
Alexander Wiseman13-Aug-02 10:47
Alexander Wiseman13-Aug-02 10:47 
GeneralRe: save and load dynamic struct, need help ... Pin
Daniel Turini13-Aug-02 9:29
Daniel Turini13-Aug-02 9:29 
GeneralRe: save and load dynamic struct, need help ... Pin
Bill Wilson13-Aug-02 13:20
Bill Wilson13-Aug-02 13:20 
GeneralCListCtrl arrow key navigation Pin
dennisV13-Aug-02 7:59
dennisV13-Aug-02 7:59 
GeneralRe: CListCtrl arrow key navigation Pin
Shog913-Aug-02 8:53
sitebuilderShog913-Aug-02 8:53 
GeneralRe: CListCtrl arrow key navigation Pin
dennisV13-Aug-02 9:04
dennisV13-Aug-02 9:04 
GeneralRe: CListCtrl arrow key navigation Pin
Shog913-Aug-02 9:10
sitebuilderShog913-Aug-02 9:10 
Ok, that makes sense now. Unless you specifically need to pay mind to keyboard selection while excluding all other forms, it would be easier for you to use the notification LVN_ITEMCHANGED and watch for changes to the selection state:
void CMyWin::OnItemchangedListCtrl(NMHDR* pNMHDR, LRESULT* pResult) 
{
   NMLISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
   *pResult = 0;
   if ( pNMListView->iItem < 0 )
      return;
 
   if ( (pNMListView->uOldState & LVIS_SELECTED) 
      && !(pNMListView->uNewState & LVIS_SELECTED) )
   {
      // item has lost selection
   }
   else if ( !(pNMListView->uOldState & LVIS_SELECTED) 
      && (pNMListView->uNewState & LVIS_SELECTED) )
   {
      // item has gained selection
   }
}


---

Shog9
If I could sleep forever, I could forget about everything...

GeneralRe: CListCtrl arrow key navigation Pin
dennisV13-Aug-02 9:32
dennisV13-Aug-02 9:32 
GeneralRe: CListCtrl arrow key navigation Pin
Shog913-Aug-02 9:36
sitebuilderShog913-Aug-02 9:36 
GeneralKill a screensaver... Pin
Matt Eckerson13-Aug-02 7:49
Matt Eckerson13-Aug-02 7:49 
GeneralRe: Kill a screensaver... Pin
Alexander Wiseman13-Aug-02 8:35
Alexander Wiseman13-Aug-02 8:35 
GeneralRe: Kill a screensaver... Pin
Matt Eckerson13-Aug-02 10:42
Matt Eckerson13-Aug-02 10:42 
GeneralRe: Kill a screensaver... Pin
Alexander Wiseman13-Aug-02 10:47
Alexander Wiseman13-Aug-02 10:47 
GeneralRe: Kill a screensaver... Pin
Matt Eckerson17-Aug-02 12:26
Matt Eckerson17-Aug-02 12:26 
GeneralISAPI File Writing Pin
John Pepper13-Aug-02 7:26
John Pepper13-Aug-02 7:26 
GeneralRe: ISAPI File Writing Pin
Jason Henderson13-Aug-02 9:14
Jason Henderson13-Aug-02 9:14 
GeneralRe: ISAPI File Writing Pin
John Pepper13-Aug-02 9:30
John Pepper13-Aug-02 9:30 
GeneralRe: ISAPI File Writing Pin
Jason Henderson13-Aug-02 15:59
Jason Henderson13-Aug-02 15:59 
GeneralRe: ISAPI File Writing Pin
Tomasz Sowinski13-Aug-02 9:20
Tomasz Sowinski13-Aug-02 9:20 
GeneralRe: ISAPI File Writing Pin
John Pepper13-Aug-02 9:28
John Pepper13-Aug-02 9:28 
GeneralRe: ISAPI File Writing Pin
John Pepper13-Aug-02 9:24
John Pepper13-Aug-02 9:24 
GeneralRe: ISAPI File Writing Pin
John Pepper13-Aug-02 9:35
John Pepper13-Aug-02 9:35 
GeneralRe: ISAPI File Writing Pin
John Pepper13-Aug-02 10:37
John Pepper13-Aug-02 10:37 
QuestionFTP Add-in for Visual Studio? Pin
Paul Tomsic13-Aug-02 7:01
Paul Tomsic13-Aug-02 7:01 

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.