Hello all, I want to automate the operations in MS paint, for that i am using CreateProcess to spwan the Ms paint process, but i cannot send the messages to the paint WINDOW or any menus of the paint window. I could find the handle to the paint window using FindWindow API but after using SendMessage(hwnd,.....), the paint window does not process ANYTHING!! What can I do now?
There is an issue with you sending the WM_PAINT and many a times Windows cache the view and paint may not be called if Windows does not think that painting is needed. I had expereinced the same when you had 3 windows open and many times the third windows paint is not called. You can use the erase back ground message and paint will be called automatically