I realize that maybe creating a chessboard with 64 "buttons" are not the best way.
So my question is, is it better to draw the 64 cases and detect mouse clicks or is it better to create 64...
I'm writing a chessboard with GDI and when I click on a square the color changes to the opposite color but then it wont get redrawn again to normal.
I verified and I get only 5 WM_DRAWITEM message...
They are ok, returning the indexes of the tabs.
Actually it not only breaks out of the switch() but it breaks out of the WM_DRAWITEM and never goes to the rest of the code, that is the problem.
...
Thanks for the guidance.
So as I understand I have to use WM_DRAWITEM and not WM_PAINT.
I set up a DRAWITEMSTRUCT structure and try to paint in WM_DRAWITEM but it still won't work.
I think it gets set automatically because I only send a DTM_SETFORMAT message when they are created. This is the format I use
LPSTR lpstrDate = "dd / MM / yyy dddd";
The MSDN link you gave me talking about the client
"Gets FD_READ and calls recv to get any response data sent by server ."
FD_READ is a windows message. Im only using a console program.
Do you...
Yes thank you Victor i found it. Its always easier after a good night sleep. :)
I had to create an identifier and set it as InsertMenu's four parameter.
And then check this identifier in...