September 30th, 2013, 07:07 AM
I have to repeat my quesrtions:
September 30th, 2013, 05:47 AM
I don't care whether your "development PC" does or does not "internet connection".
It's up to you to post your actual and properly formatted code if you hope to get some help from this Forum!
What...
September 30th, 2013, 05:26 AM
One more question: what are "Default painting" and "Modified painting"? how are they implemented?
September 30th, 2013, 05:22 AM
1. If you thought that so bad formatted code is easy to read/understand then you was wrong! :thumbd: :mad:
2. What is GetDc?
3. What is ReleaseDc?
4. What are you trying to do within the...
September 30th, 2013, 03:29 AM
Are you sure it is BeginPaint that fails with error code ERROR_DC_NOT_FOUND (1425)?
Please, post your actual code for painting, including all the error checkings!
September 30th, 2013, 02:53 AM
Do you mean the BeginPaint() function returns NULL?
In such a case only GetLastError can tell you the exact reason!
September 29th, 2013, 02:37 AM
Well if you "have a doubt about WM_PAINT Message" why don't you read the documentation? :confused:
From MSDN WM_PAINT message:
September 27th, 2013, 07:07 AM
September 27th, 2013, 05:54 AM
From MSDN:Do you call (and where?) either GetWindowDC function or the GetDC one?
September 27th, 2013, 05:29 AM
1. You have to select the original pen after the drawing:
hdc = BeginPaint(hWnd, &ps);
HPEN hOldPen = SelectObject( hdc,hpen2);
...
SelectObject( hdc, hOldPen);
EndPaint(hWnd, &ps);
...