All pastes #767404 Raw Edit

Something

public cpp v1 · immutable
·published 2007-11-09 19:00 UTC
rendered paste body
void CallBackButton2( int p, int c ){	//grab the parent window and child ( object )	window_info_s* window = GetWindowFromIndex( p );	button_info_s* button = GetButtonFromIndex( p, c );	//grab the renderer info	viewport_info_s vp;	m_pGui->GetWindowParams( &vp );	//create the new 'spawned' window scheme	color_scheme_s* m_pScheme = ConstructColorScheme( 		GetColor( 233, 100, 100, 140 ),		GetColor( 0, 0, 0, 255 ),		GetColor( 130, 130, 130, 255 ),		GetColor( 180, 180, 180, 233 ),		GetColor( 0, 0, 0, 255 ),		GetColor( 255, 255, 255, 255 ) );	//create the new 'spawned' window	int m_iNewWindowHandle = m_pGui->AddWindow( "Hello World!",		m_pScheme, rand( ) % vp.width, rand( ) % vp.height, 200, 100 );	int m_iNewStatusHandle = m_pGui->AddStatusBar( m_iNewWindowHandle,		"RED", 10, 30, 180, 20, 0, ( FARPROC )CallbackStatusBar1,		&GetColor( 200, 0, 0, 255 ), &GetColor( 0, 0, 0, 255 ), &GetColor( 222, 222, 222, 255 ) );	//destory the scheme	free( m_pScheme );}