void LinkMgrSingleton::Init() { m_firsttime = false; m_WorkingLink = new Link( ); m_WorkingLink->SetParmA( m_UserParms.GetUserParmId( 0 ) ); m_WorkingLink->SetParmB( m_UserParms.GetUserParmId( 1 ) ); RegisterContainer( m_UserParms.GetID() ); }
BOOL RegisterScrollWndControl (void) { WNDCLASS WndClass; if (!RegisterContainer ()) return FALSE; WndClass.spClassName = CTRL_SCROLLWND; WndClass.dwStyle = WS_NONE; WndClass.dwExStyle = WS_EX_NONE; WndClass.hCursor = GetSystemCursor (IDC_ARROW); WndClass.iBkColor = GetWindowElementPixel (HWND_NULL, WE_BGC_WINDOW); WndClass.WinProc = ScrollWndCtrlProc; return AddNewControlClass (&WndClass) == ERR_OK; }