do something like this:
Main Source:
#include "ScreenSetup.h"
All the normal code BUT before the main loop add this line:
SetupScreen ( );
Make 2 files one named ScreenSetup.h and one named ScreenSetup.cpp.
In the ScreenSetup.h add this code:
#pragma once
void SetupScreen ( void );
In the ScreenSetup.cpp add this code:
void SetupScreen ( void )
{
dbSetWindowOff ( );
}
This code is pretty useless because it takes more line to set it up then it would to just put dbSetWindowOff ( ); in your main source. But this gives you a good idea on how to do these types of things.
Use Google first... it's not rocket surgery!