Logo Search packages:      
Sourcecode: jugglemaster version File versions  Download package

app.cpp

/*
 * JMPocket - JuggleMaster for Pocket PC
 * Version 1.03
 * (C) Per Johan Groland 2002-2004
 *
 * Using JMLib 2.0 (C) Per Johan Groland 2000-2002
 * Based on JuggleMaster Version 1.60
 * Copyright (C) 1995-1996 Ken Matsuoka
 *
 * JMPocket is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published
 * by the Free Software Foundation; either version 2 of the License,
 * or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 */

#include "stdafx.h"
#include "app.h"
#include "form.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

BEGIN_MESSAGE_MAP(JMApp, CWinApp)
      //{{AFX_MSG_MAP(JMApp)
      //}}AFX_MSG_MAP
      // Standard file based document commands
END_MESSAGE_MAP()

JMApp::JMApp() : CWinApp() {
}

// The one and only JMApp object
JMApp theApp;

BOOL JMApp::InitInstance() {
      // Change the registry key under which our settings are stored.
      SetRegistryKey(_T("JMPocket"));

      // Create the main frame
      JMFrame* pFrame = new JMFrame();
      m_pMainWnd = pFrame;

      // Load the frame with its resources
      pFrame->LoadFrame(IDR_MAINFRAME, WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE,
                    NULL, NULL);

      // The one and only window has been initialized, so show and update it.
      pFrame->ShowWindow(m_nCmdShow);
      pFrame->UpdateWindow();

      return true;
}

Generated by  Doxygen 1.6.0   Back to index