I have created a custom control to diaplay a rather compilcated bitmap on the main window. Now I can trap every message I need except for the WM_EXITSIZEMOVE, and this is probably the most important of them all.
I only want to resize the bitmap after the user has finished resizing the main window. I can re-create the effect by sending a message to the control from the main window, but this defeats the purpose of having a custom control in the first place.
Is there any way to detect when the parent window has completed a resize?
Yes, it was a NCHITTEST issue, I was returning the wrong value.
Nomatter what I tried, I just cannot trap the WM_EXITSIZEMOVE.
I am going to have to take Chris' approach and set a flag on a WM_SIZE event. But since I will only recieve mouse messages when the mouse is over the window I will have to use some type of timer. Luckily for me though, I have a thread running to monitor any changes required in the bitmap.
how can i load the pixels from the file and process the pixels without loading them into memory?
Here[^] or here[^] you can find how it is stored an image into a BMP file. i.e. how it is writed the file header.
Writing some lines of code you can load a pixel from the source image and then store into the output image...to let the processing be faster work row per row.
Probally you can find some code ready somewhere (also on CP) to access to the file.