I'm trying to post a LVN_ ITEMCHANGED to my custom gridlist's owner. I know how to send a WM_ User message using PostMessage (as shown here)
::PostMessage( AfxGetMainWnd()->GetSafeHwnd(), WM_REFRESH, (WPARAM)pBuffer, (LPARAM)GetOutputIdx() );
When I use this same code to send a LVN_ITEMCHANGED message though,
::PostMessage( AfxGetMainWnd()->GetSafeHwnd(), LVN_ITEMCHANGED, 0, 0);
it doesn't seem to be caught by the
ON_NOTIFY(LVN_ITEMCHANGED, ..., ...)
I have in the owner class.
Am I wrong to be using ::PostMessage to send a Notify event?
Is there a difference between Notify messages and WM_ prefix messages or how they're handled?
Can someone post a sample of how I would send the message properly?
Thanks in advance.
Edit
I found another solution to the problem. See my answer below.