![]() |
RegisterWindow() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Private Function |
Declared in: AsyncSocket.h |
static BOOL RegisterWindow();
Register our window
try { WNDCLASS wc; /* Fill in window class structure with parameters that describe the */ /* main window. */ wc.style = 0; /* Class style(s). */ wc.lpfnWndProc = (WNDPROC)SocketMessageHandler; /* Function to retrieve messages for */ /* windows of this class. */ wc.cbClsExtra = 0; /* No per-class extra data. */ wc.cbWndExtra = 0; /* No per-window extra data. */ wc.hIcon = NULL; /* Icon name from .RC */ wc.hInstance = GetInstance(); /* Application that owns the class. */ wc.hCursor = NULL; wc.hbrBackground = NULL; wc.lpszMenuName = NULL; /* Name of menu resource in .RC file. */ wc.lpszClassName = CAsyncSocket_Class ; /* Name used in call to CreateWindow. */ /* Register the window class and return success/failure code. */ return (RegisterClass(&wc)); } ERROR_HANDLER_STATIC_RETURN(CAsyncSocket_Class,"RegisterWindow",FALSE)
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |