I need to monitor the dimensions of the rectangle being drawn in CaptureImageOrColor function. With the following statements I can do that, but after a rectangle is drawn. Could you please advice for a continuous recording while the rectangle is being drawn? Many thanks in advance.
Many thanks for this advice. Actually, I had tested it but my problem is that once in sub.Dlg the code loops until left button is up, and the [OK. Cancel etc] listbox is displayed. During this period, ie. from starting drawing until left button is up, everything on the display is frozen, and no QM output is displayed. Everything accumulated in QM output is displayed after left button is up. It is worth mentioning that even the system tray clock is not updated during this period. I am still trying to find the actual statement which freezes the display. Best regards.
The reason is what tells you the tooltip: "Note: this is snapshot, not real windows...". It is a full-screen window (hDlg) covering all other windows. To display something, use eg OnScreenDisplay or some other topmost window, or even draw the text in hDlg.
Dear Gintaras,
I need to continuously monitoring, while the mouse is moved, the pointer position. Therefore, I made three modifications to your code, as it follows :