@DavidCrow : You are genius man .. Thankxx a lot .. As you said its just because of my Graphics driver . Earlier my graphics driver was not compatible with the hardware .. Now i have installed the new driver .. and the issue is resolved.. Thankxx again ..
But I want to get the text when it's pasted.
I checked WM_PASTE but it is send to the control that has the focus not it's parent CWnd.
My dialog has some control of buttons, edit boxes, list control, ...
so it is posible that any of these controls has the focus (when something is paste)
Check out these functions[^]. It's a while since I have done this but I'm afraid it is somewhat involved in terms of getting mutliple sets of information and matching the pieces together. Hey, if it wasn't Microsoft it wouldn't be fun.
One of these days I'm going to think of a really clever signature.
I have a CDateTimeCtrl on my dialog. Through this I can choose any date in given range from drop down. But currently user is also allowed to press numeric keys to set the date. Is there any way to stop user from typing in it. I want, he should only be able to select the date from drop-down and I don't want to disable the control.
I have checked the "AllowEdit" property but that is different thing. Currently it is set to false.