WinAPI in C. Please no C++!!
I am using this stolen code:(part shown only, nice small plain C)
// create the main window
Wind[0] = CreateWindowEx( WS_EX_CONTROLPARENT,
"TINY_UNICODE","Tiny Unicode Editor",
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,0,500,300,NULL,NULL,Inst,NULL);
// buttons
Wind[1] = CreateWindow("BUTTON","Open",
WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,
2,2,50,25,Wind[0],(HMENU) 1001,Inst,NULL);
Wind[2] = CreateWindow("BUTTON","Save",
WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,
2,30,50,25,Wind[0],(HMENU) 1002,Inst,NULL);
Wind[3] = CreateWindow("BUTTON","Quit",
WS_CHILD | WS_VISIBLE | BS_FLAT,
2,60,50,25,Wind[0],(HMENU) 1003,Inst,NULL);
// edit window
Wind[4] = CreateWindowEx(WS_EX_CLIENTEDGE,"EDIT",NULL,
WS_CHILD | WS_VISIBLE |
ES_MULTILINE,
60,2,200,200,Wind[0],NULL,Inst,NULL);
Now I want to replace the edit control Wind[4] with a static control to draw graphs using SetPixel(hdc, x, y, z, 0, 0));
For that I need to get the hdc of the window Wind[4].
Please how do I do that?
Thank you
Johan Smit
No I have not solved this myself. I probably asked the follow-up question on the wrong place.
I am unsure how to place follow up questions.