Hello,
Just some quick questions to boggle your minds.
1. How do I work out what the height of an edit box is supposed to be, dependant on the font that it's using (In this example, the stock DEFAULT_GUI_FONT). I've tried:-
Code:
LOGFONT font;
GetObject(GetStockObject(DEFAULT_GUI_FONT), sizeof(LOGFONT), &font);
g_hwndEdit = CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "", WS_CHILD | WS_VISIBLE, 0, 0, 320, -font.lfHeight + 2 * GetSystemMetrics(SM_CYEDGE), hwnd, NULL, g_hInstance, NULL);
...but it's a little small for my liking. Any better ideas?
2. How do I work out where the end of a HTTP header ends and the content begins? Should I look for the set of "\r\n"s between them, or is there a better way?
3. Is the only way to know when a HTTP transfer has finished is when the server hangs up on you?
Thanks for any help.