⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myproject.h

📁 采用Platform Builder进行编程
💻 H
字号:

#if !defined(AFX_MYPROJECT_H__46420B45_D683_4D22_B26D_B890A96B2482__INCLUDED_)
#define AFX_MYPROJECT_H__46420B45_D683_4D22_B26D_B890A96B2482__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


#include "resource.h"
#include "voimage.h"
#include <windows.h>
#include <commctrl.h>








//********************以下自己加******************//

// Returns number of elements
#define dim(x) (sizeof(x) / sizeof(x[0]))




//----------------------------------------------------------------------
// Generic defines and data types
//
struct decodeUINT {                             // Structure associates
    UINT Code;                                  // messages 
                                                // with a function. 
    LRESULT (*Fxn)(HWND, UINT, WPARAM, LPARAM);
}; 
struct decodeCMD {                              // Structure associates
    UINT Code;                                  // menu IDs with a 
    LRESULT (*Fxn)(HWND, WORD, HWND, WORD);     // function.
};
  //function declare
  int InitApp (HINSTANCE);
  HWND InitInstance (HINSTANCE, LPWSTR, int);
  int TermInstance (HINSTANCE, int);

  // Window procedures
  LRESULT CALLBACK MainWndProc (HWND, UINT, WPARAM, LPARAM);


//1. Message handlers
    LRESULT DoCreateMain (HWND, UINT, WPARAM, LPARAM);
    //LRESULT DoSizeMain (HWND, UINT, WPARAM, LPARAM);
    LRESULT DoPaintMain (HWND, UINT, WPARAM, LPARAM);
    //LRESULT DoInitMenuPopMain (HWND, UINT, WPARAM, LPARAM);
    LRESULT DoCommandMain (HWND, UINT, WPARAM, LPARAM);

    //LRESULT DoLButtonUpMain (HWND, UINT, WPARAM, LPARAM);
     //LRESULT DoDestroyMain (HWND, UINT, WPARAM, LPARAM);

//2. 菜单条 函数
   LPARAM DoMainCommandDefLocSet (HWND, WORD, HWND, WORD);//初始位置设置
   //LPARAM DoMainCommandUndo (HWND, WORD, HWND, WORD);
   LPARAM DoMainCommandExit (HWND, WORD, HWND, WORD);//退出系统



//3.对话框  函数
   BOOL CALLBACK DialogProc_DefLocSet (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);//海图初始位置设置   对话框






//4.自定义   函数 
  void	OnInitial(void);//初始化函数


//*************************自己加结束********************************//


#endif // !defined(AFX_MYPROJECT_H__46420B45_D683_4D22_B26D_B890A96B2482__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -