WNDCLASSEX wndclass ;  if (hStartWnd != NULL) { DestroyWindow (hStartWnd); hStartWnd = NULL; }  wndclass.cbSize		   = sizeof(WNDCLASSEX); wndclass.style         = CS_HREDRAW | CS_VREDRAW; wndclass.lpfnWndProc   = StartWinProc; wndclass.cbClsExtra    = 0; wndclass.cbWndExtra    = 0; wndclass.hInstance     = hInst; wndclass.hIcon         = LoadImage(hInst, MAKEINTRESOURCE(IDI_ICON_TIMIDITY), IMAGE_ICON, 32, 32, 0); wndclass.hIconSm       = LoadImage(hInst, MAKEINTRESOURCE(IDI_ICON_TIMIDITY), IMAGE_ICON, 16, 16, 0); wndclass.hCursor       = LoadCursor(0, IDC_ARROW); wndclass.hbrBackground = (HBRUSH)(COLOR_SCROLLBAR + 1); wndclass.lpszMenuName  = NULL; wndclass.lpszClassName = StartWndClassName;  if (!RegisterClassEx(&wndclass)) {return;} hStartWnd = CreateWindowEx(WS_EX_TOOLWINDOW | WS_EX_DLGMODALFRAME, StartWndClassName, 0, WS_CLIPCHILDREN | WS_BORDER | WS_DLGFRAME, -32, -32, 0, 0, 0, 0, hInst, 0); ShowWindow(hStartWnd, SW_SHOW); UpdateWindow(hStartWnd); InitMainWnd(hStartWnd); InitConsoleWnd(hStartWnd); InitListWnd(hStartWnd); InitTracerWnd(hStartWnd); InitDocWnd(hStartWnd); InitWrdWnd(hStartWnd); InitSoundSpecWnd(hStartWnd);
InitMainWnd(NULL); InitConsoleWnd(hMainWnd); InitListWnd(hMainWnd); InitTracerWnd(hMainWnd); InitDocWnd(hMainWnd); InitWrdWnd(hMainWnd); InitSoundSpecWnd(hMainWnd);
void InitStartWnd(int nCmdShow){	WNDCLASSEX wndclass ;	if (hStartWnd != NULL) {		DestroyWindow (hStartWnd);		hStartWnd = NULL;	}	wndclass.cbSize		   = sizeof(WNDCLASSEX);	wndclass.style         = CS_HREDRAW | CS_VREDRAW;	wndclass.lpfnWndProc   = StartWinProc;	wndclass.cbClsExtra    = 0;	wndclass.cbWndExtra    = 0;	wndclass.hInstance     = hInst;	wndclass.hIcon         = LoadImage(hInst, MAKEINTRESOURCE(IDI_ICON_TIMIDITY), IMAGE_ICON, 32, 32, 0);	wndclass.hIconSm       = LoadImage(hInst, MAKEINTRESOURCE(IDI_ICON_TIMIDITY), IMAGE_ICON, 16, 16, 0);	wndclass.hCursor       = LoadCursor(0, IDC_ARROW);	wndclass.hbrBackground = (HBRUSH)(COLOR_SCROLLBAR + 1);	wndclass.lpszMenuName  = NULL;	wndclass.lpszClassName = StartWndClassName;	if (!RegisterClassEx(&wndclass)) {return;}	hStartWnd = CreateWindowEx(WS_EX_TOOLWINDOW | WS_EX_DLGMODALFRAME, StartWndClassName, 0,		WS_CLIPCHILDREN | WS_BORDER | WS_DLGFRAME, -32, -32, 0, 0, 0, 0, hInst, 0);	ShowWindow(hStartWnd, SW_SHOW);	UpdateWindow(hStartWnd);	InitMainWnd(hStartWnd);	InitConsoleWnd(hStartWnd);	InitListWnd(hStartWnd);	InitTracerWnd(hStartWnd);	InitDocWnd(hStartWnd);	InitWrdWnd(hStartWnd);	InitSoundSpecWnd(hStartWnd);    hMainWndScrollbarProgressWnd = GetDlgItem(hMainWnd, IDC_SCROLLBAR_PROGRESS);	hMainWndScrollbarVolumeWnd = GetDlgItem(hMainWnd, IDC_SCROLLBAR_VOLUME);	EnableScrollBar(hMainWndScrollbarVolumeWnd, SB_CTL,ESB_ENABLE_BOTH);	SetScrollRange(hMainWndScrollbarVolumeWnd, SB_CTL,		       0, W32G_VOLUME_MAX, TRUE);	SetScrollPos(hMainWndScrollbarVolumeWnd, SB_CTL,		     W32G_VOLUME_MAX - amplification, TRUE);}