Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Max array size? Pin
John M. Drescher3-Jul-03 17:24
John M. Drescher3-Jul-03 17:24 
GeneralRe: Max array size? Pin
leppie3-Jul-03 17:37
leppie3-Jul-03 17:37 
GeneralRe: Max array size? Pin
John M. Drescher3-Jul-03 17:47
John M. Drescher3-Jul-03 17:47 
GeneralRe: Max array size? Pin
leppie3-Jul-03 18:03
leppie3-Jul-03 18:03 
GeneralRe: Max array size? Pin
John M. Drescher3-Jul-03 18:21
John M. Drescher3-Jul-03 18:21 
GeneralRe: Max array size? Pin
leppie3-Jul-03 18:27
leppie3-Jul-03 18:27 
AnswerRe: Max array size? Pin
Ryan Binns3-Jul-03 19:05
Ryan Binns3-Jul-03 19:05 
GeneralCListCtrl - lost sel on postmsg DBLCLK Pin
kyndestad3-Jul-03 17:09
kyndestad3-Jul-03 17:09 
With a simple CListBox I can SetCurSel() then from another routine

pWnd = GetDlgItem(IDC_LIST_BOX);
pWnd->PostMessage(WM_LBUTTONDBLCLK);

and in the handler for double click I can GetCurSel() and all is well.

If I get fancier with a CListCtrl (In Report style)
and programatically set a row to selected,

when I pWnd->PostMessage(WM_LBUTTONDBLCLK); to the ListCtrl

in the double click handler there is no longer a selected item

nItem = pMyListCtrl->GetNextItem(-1,LVNI_SELECTED); returns -1 but anytime before the
PostMessage() it is returning the correct selected row.

Anyone have a clue about this?

-kry
GeneralRe: CListCtrl - lost sel on postmsg DBLCLK Pin
Ryan Binns3-Jul-03 17:15
Ryan Binns3-Jul-03 17:15 
GeneralRe: CListCtrl - lost sel on postmsg DBLCLK Pin
kyndestad7-Jul-03 5:11
kyndestad7-Jul-03 5:11 
GeneralRe: CListCtrl - lost sel on postmsg DBLCLK Pin
Ryan Binns7-Jul-03 5:16
Ryan Binns7-Jul-03 5:16 
GeneralOffice Add-in Pin
Andrew Walker3-Jul-03 16:46
Andrew Walker3-Jul-03 16:46 
GeneralRe: Office Add-in Pin
Andrew Walker3-Jul-03 20:24
Andrew Walker3-Jul-03 20:24 
GeneralAdo Pin
Anthony98873-Jul-03 16:36
Anthony98873-Jul-03 16:36 
GeneralADO Pin
Anonymous3-Jul-03 16:34
Anonymous3-Jul-03 16:34 
GeneralRun in release mode Pin
Gagnon Claude3-Jul-03 16:34
Gagnon Claude3-Jul-03 16:34 
GeneralRe: Run in release mode Pin
John M. Drescher3-Jul-03 16:58
John M. Drescher3-Jul-03 16:58 
GeneralVersion Number Pin
Gagnon Claude3-Jul-03 16:28
Gagnon Claude3-Jul-03 16:28 
GeneralRe: Version Number Pin
Ryan Binns3-Jul-03 17:12
Ryan Binns3-Jul-03 17:12 
GeneralMultiple Doc Templates Pin
flip3-Jul-03 15:30
flip3-Jul-03 15:30 
GeneralRe: Multiple Doc Templates Pin
Ryan Binns3-Jul-03 15:50
Ryan Binns3-Jul-03 15:50 
GeneralRe: Multiple Doc Templates Pin
flip3-Jul-03 16:36
flip3-Jul-03 16:36 
GeneralRe: Multiple Doc Templates Pin
Ryan Binns3-Jul-03 16:40
Ryan Binns3-Jul-03 16:40 
GeneralWindows shell programming - Systray Pin
haritadala3-Jul-03 14:09
haritadala3-Jul-03 14:09 
GeneralRe: Windows shell programming - Systray Pin
Michael Dunn3-Jul-03 15:18
sitebuilderMichael Dunn3-Jul-03 15:18 

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.