Hi, I've got 2 threads, one continuously uses "SendMessage" to tell main thread to perform some processing and update the GUI. However, after running my application for anywhere between 1/2 hr to 5 hours, SendMessage will randomly get stuck.... IE: The window that's suppossed to receive the message never receives the message, and the application GUI just freezes. Can anyone tell me if this has happened to them before, or what could possibly cause the message sent by SendMessage to not-be-received by the recepient window? Thanks, skyapie :-D
skyapie
Posts
-
What can cause SendMessage to get stuck? -
Bluetooth in Windows CE .NET 4.2Can anyone tell me how to make my device non-discoverable (with bluetooth)? I want to be able to have my device connect to only bluetooth printers, and no other devices like mobile phones or bluetooth dongles.... thanks, skyapie :)
-
MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press?Hi again, thanks for the reply last time.... Do you know how to do the same thing for the events where the user moves a scroll bar or clicks in a list box/list control? I couldn't get it to work using the OnCommand method, so I used OnNotify. See code here...
BOOL CBaseFormView::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) { NMHDR* pNMHDR = (NMHDR*)lParam; /* ** I have no clue what 0xFFFFFF4 is.... it just seems to be the value that gets posted ** when the user scrolls. */ if(pNMHDR->code == 0xFFFFFFF4) { AsyncServicesUpdateInactivityTimer(this->m_hWnd); } return CFormView::OnNotify(wParam, lParam, pResult); }
Except I'm not sure what the notification codes for selecting something within a list box or list control, or moving the scrollbar are. Thanks again Skyapie :-D -
What is the notification code that gets sent when a scrollbar event occurs?That will work if the scrollbar is for the view, not for a list control or list box in the view...
-
What is the notification code that gets sent when a scrollbar event occurs?Hi, I'm using the OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) method to find out when a user uses a scrollbar. Except I'm not sure what to be checking lParam against. I've casted lParam to be a NMHDR*, but when I check the value of pNMHDR->code, it's usually 0xFFFFFFF4. Can anyone tell me what xxxxx should be in the following line?
BOOL CBaseFormView::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) { NMHDR* pNMHDR = (NMHDR*)lParam; **if(pNMHDR->code == xxxxx)** { //Do stuff } }
Or can someone tell me if I'm going about this the wrong way? Thanks, skyapie -
RAPI soft-reset?Hi, Does anyone know how to trigger a soft-reset programmatically on a Win CE device using RAPI? Thanks skyapie :-D
-
MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press?Thanks! It worked :-D
-
MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press?Is there any message that gets posted on event of a button press? The ON_BN_CLICKED is used for specific buttons and that message gets sent if the specific button is pressed. If I have a dialog with 10 buttons, and I want to know if a button got pressed (any button, it doesn't matter which), how do I do this? Thanks, skyapie :)