Thanks for the replies and articles. This is my understanding 1. device driver for the mouse or keyboard converts the input into messages and places them in the system message queue 2. The system removes the messages, one at a time, from the system message queue and then posts them to the message queue of the thread that created the destination window. e.g. in dialog based application it is a message queue associated with CWinThread (main thread) which has its message loop also. 3. Hence the message queue and message loop are associated with Thread not the window. 4. When UI thread is created inside the application, intially it does have message queue and message loop, but when some message is posted it creates the message queue and message loop on demand. I still have one more query here. What will happen in case when modal dialog is launch on some button click of dialog based application and how will be the case with modeless dialog boxe.
sharda bhagwatkar
Posts
-
Message Queues -
Message QueuesI am confused by reading many articles. Can any one tell me how many message queues are there in dialog based application. Are there separate message queues for each window or each thread has its own message queue.
-
Message QueueI am confused by reading many articles. Can any one tell me how many message queues are there in dialog based application. Are there separate message queues for each window or each thread has its own message queue.
-
EN_KILLFOCUS AfxMessageBox [Moved]Yes your right...I also know it that validation in kill focus is not a good idea....but still i have to do it because its an requirement... Please suggest be some idea to handle this situation....
-
EN_KILLFOCUS AfxMessageBox [Moved]I have a dialog box on which some Edit boxes are there. For validation of values in edit boxes, i have handled EN_KILLFOCUS. When EN_KILLFOCUS is called, value in edit box is validated. If validation fails, then AfxMessageBox is displayed "Input value is in correct". The problem is when i press ALT+TAB and switch to another application, the Afxmessagebox is re-displayed because EN_KILLFOCUS is called again. Please let me know any solution to be handled in EN_KILLFOCUS so that Afxmessagbox is not displayed. Thanking you in advance. Regards, Sharda.
modified on Friday, July 24, 2009 12:41 AM
-
CreateControl Failed problem [modified]Hi, In my application, I am creating an MSChart control dynamically like this:- CMSChart *m_pChart = new CMSChart(); m_pChart->CreateControl(m_pChart->GetClsid(),EMPTY_STRING, WS_TABSTOP, CRect(0,0,0,0), pParent, nCtrlID); On development environment( in which Visual Studio 6.0 is installed), the MSChart control is creating successfully(CreateControl() returns true). But on testing environment( in which Visual Studio 6.0 is not installed), the CreateControl API returns FALSE. Please let me know what must be the problem. Thanks.
modified on Thursday, May 22, 2008 12:12 AM
-
Zoom in MSCHART and calculate Plot area in PixelsWhat do you mean exactly by scatter graphs ? Points with an X and Y value ? -> Yes, with values X and Y. Color: yes. Width: no (you mean the width of the axis line ?). Scale: partially (min&max and major division yes, but there's no minor division). Auto scale: yes. What do you mean by "marking data points" ? -> Yes, width of axis line. ->axis scale should support -ve values also. -> Marking data points means each point on graph should be highlighte with some symbol like cross, square etc. If you use two separate series with the same data then yes (one series for the points, one for the line). No, i want the functionality in which we can set the property for one series with either lines connecting between points or without line connecting between points. MSCHART control provide all this functionalities. But just Zooming MSCHART i am not able to do it.
-
Zoom in MSCHART and calculate Plot area in PixelsThanks for reply cedric. I checked your charting tool. But i want to plot the XY scatter graphs. Does you tool provide that. I also want to set all the properties og graph like Axes properities:- color, width ,scale( min, max, major division and minor division), auto scale function, marking data points Graph properties:- plotting points with/ without line connecting them, grid display function, labeling points, toggle title ON/OFF. Please let me know if your chart provide this.
-
Zoom in MSCHART and calculate Plot area in PixelsHi, I want to zoom in the selected area on MSCHART. The area can be selected through rectangle which will be shown when the mouse moves over MSCHART. Please help me if anyone know how to zoom this area on MSCHART. One method i can think is shifting the selected rect origin to plot origin. For doing this, i will require Plot area in pixels. Thanks.
-
Mouse Hook Problem on virtual desktopthanks Iain, Actually i tried with both the options like g_MouseHook = SetWindowsHookEx(WH_MOUSE_LL, MouseProc , NULL,0); and g_MouseHook = SetWindowsHookEx(WH_MOUSE, MouseProc , NULL,GetCurrentThreadID()); Still in both the cases MouseProc is not called.
-
Mouse Hook Problem on virtual desktopHi, I have installed global mouse hooks in my application using following call g_MouseHook = SetWindowsHookEx(WH_MOUSE_LL, MouseProc , hInstance, 0); The mouse procedure is as follows extern "C" _declspec(dllexport) LRESULT CALLBACK MouseProc (int nCode, WPARAM wParam, LPARAM lParam) The MouseProc is calling successfully when current active desktop is "default". When i switch the desktop to some other desktop, the MouseProc is not calling. Can anyone tell me reason for this and also solution. sharda