| 222 wcx.cbSize = sizeof(wcx); |
226 wcx.cbSize = sizeof(wcx); |
| 223 wcx.style = 0; |
227 wcx.style = 0; |
| 224 wcx.lpfnWndProc = message_window_handler; |
228 wcx.lpfnWndProc = message_window_handler; |
| 225 wcx.cbClsExtra = 0; |
229 wcx.cbClsExtra = 0; |
| 226 wcx.cbWndExtra = 0; |
230 wcx.cbWndExtra = 0; |
| 227 wcx.hInstance = winpidgin_hinstance(); |
231 wcx.hInstance = winpidgin_exe_hinstance(); |
| 228 wcx.hIcon = NULL; |
232 wcx.hIcon = NULL; |
| 229 wcx.hCursor = NULL; |
233 wcx.hCursor = NULL; |
| 230 wcx.hbrBackground = NULL; |
234 wcx.hbrBackground = NULL; |
| 231 wcx.lpszMenuName = NULL; |
235 wcx.lpszMenuName = NULL; |
| 232 wcx.lpszClassName = wname; |
236 wcx.lpszClassName = wname; |
| 234 |
238 |
| 235 RegisterClassEx(&wcx); |
239 RegisterClassEx(&wcx); |
| 236 |
240 |
| 237 /* Create the window */ |
241 /* Create the window */ |
| 238 if(!(win_hwnd = CreateWindow(wname, TEXT("WinpidginMsgWin"), 0, 0, 0, 0, 0, |
242 if(!(win_hwnd = CreateWindow(wname, TEXT("WinpidginMsgWin"), 0, 0, 0, 0, 0, |
| 239 NULL, NULL, winpidgin_hinstance(), 0))) { |
243 NULL, NULL, winpidgin_exe_hinstance(), 0))) { |
| 240 purple_debug_error("winpidgin", |
244 purple_debug_error("winpidgin", |
| 241 "Unable to create message window.\n"); |
245 "Unable to create message window.\n"); |
| 242 return NULL; |
246 return NULL; |
| 243 } |
247 } |
| 244 |
248 |