BOOL CPGPFoneFrame::PreCreateWindow(CREATESTRUCT& cs) { DoPrefs(0); cs.x = gPGFOpts.sysopt.windowPosX; cs.y = gPGFOpts.sysopt.windowPosY; cs.cx = cFoneFrameWidth; cs.cy = cFoneFrameHeight; return CFrameWnd::PreCreateWindow(cs); }
static pascal OSErr ShowPreferencesAE( const AppleEvent * theAppleEvent, AppleEvent * reply, SInt32 handlerRefcon) { fprintf( logfile, "PREFS event received.\n" ); fflush( logfile ); if ( localsplash ) start_splash_screen(); system( "DYLD_LIBRARY_PATH=\"\"; osascript -e 'tell application \"X11\" to activate'" ); DoPrefs(); fprintf( logfile, " event processed %d.\n", noErr ); fflush( logfile ); return( noErr ); }
CPGPFoneFrame::~CPGPFoneFrame() { DoPrefs(1); }