91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 9KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-14
  • 語言: 其他
  • 標簽:

資源簡介

代碼實現(xiàn)了MiniGUI的模擬觸摸屏,按鍵切換圖片,控件透明,適合新手歡迎下載,評論,討論。

資源截圖

代碼片段和文件信息

/*?
**?$Id:?bmpbkgnd.c?759?2009-09-21?05:22:47Z?dongjunjie?$
**
**?Listing?5.2
**
**?bmpbkgnd.c:?Sample?program?for?MiniGUI?Programming?Guide
**?????????????Create?a?dialog?box?filling?background?with?bitmap.
**
**?Copyright?(C)?2003?~?2007?Feynman?Software.
**
**?License:?GPL
*/

#include?
#include?

#include?
#include?
#include?
#include?
#include?


#ifdef?_LANG_ZHCN
#include?“bmpbkgnd_res_cn.h“
#elif?defined?_LANG_ZHTW
#include?“bmpbkgnd_res_tw.h“
#else
#include?“bmpbkgnd_res_en.h“
#endif

#define?IDC_SIZE_BTN_ON?????100
#define?IDC_SIZE_BTN_OFF?????110
#define?IDC_SIZE_BTN_ADD?????120
#define?IDC_SIZE_BTN_LES?????130

//個人理解圖片存放位置變量
static?BITMAP?light;
static?BITMAP?button;
static?BITMAP?bmp_bkgnd;


#define?IDC_EDIT????140
#define?IDC_SPINBOX?150
//字體句柄
static?PLOGFONT?timefont;
//對話框句柄
HWND?timeedit;

int?flag?=?3;


//用來定義對話框
static?DLGTEMPLATE?DlgBoxInputLen?=
{
????WS_BORDER?|?WS_CAPTION
????WS_EX_NOCLOSEBOX?|?WS_EX_TRANSPARENT?
????0?0?800?480?
????please_input_the_length
????0?0
????5?NULL
????0
};
//定義控件并初始化,參數(shù)手冊里面都有
static?CTRLDATA?CtrlInputLen?[]?=
{?
????{
????????CTRL_STATIC
????????WS_VISIBLE?|?SS_BITMAP?|?WS_THINframe?
????????100?50?200?245?
????????IDC_STATIC?
????????““
????????(DWORD)&light
????????WS_EX_TRANSPARENT?
????}
??
????{
????????CTRL_BUTTON
????????WS_CHILD?|?BS_PUSHBUTTON?|?BS_BITMAP?|BS_REALSIZEIMAGE?|?BS_NOTIFY?|?WS_VISIBLE
????????95?350?106?52
????????IDC_SIZE_BTN_ON?
????????“ON“
????????(DWORD)&button
????????0
????}
????{
????????CTRL_BUTTON
???????WS_CHILD?|?BS_PUSHBUTTON?|?BS_BITMAP?|BS_REALSIZEIMAGE?|?BS_NOTIFY?|?WS_VISIBLE
????????270?350?106?52
????????IDC_SIZE_BTN_OFF?
????????“OFF“
????????(DWORD)&button
????????0
????}
????{
????????CTRL_BUTTON
????????WS_VISIBLE?|?BS_DEFPUSHBUTTON?|?WS_TABSTOP??
????????447?350?106?52
????????IDC_SIZE_BTN_ADD?
????????“+“
????????0
????}

????{
????????CTRL_BUTTON
????????WS_VISIBLE?|?BS_DEFPUSHBUTTON?|?WS_TABSTOP??
????????619?350?106?52
????????IDC_SIZE_BTN_LES?
????????“-“
????????0
????}
};

static?void?on_down_up?(HWND?hwndint?num)
{
?????//?printf(“123123123\n“);
????char?time?[10];
???//?int?caretpos;
????int?integerdecimal;

????GetWindowText?(hwnd?time?4);
???//?caretpos?=?SendMessage?(hwnd?EM_GETCARETPOS?0?0);

????integer?=?atoi?(time);
????decimal?=?atoi?(time?+?3);
????integer?+=?num;
????if?(integer?????{
??????????integer?=?10;
????}
????if?(integer?>?30)?
????{
??????????integer?=?30;
????}
???
????sprintf?(time?“%02d.%d“?integer?decimal);
????SetWindowText?(hwnd?time);
??//??SendMessage?(hwnd?EM_SETCARETPOS?0?caretpos);
}

//回調(diào)函數(shù),
static?int?InputLenDialogBoxProc?(HWND?hDlg?int?message?WPARAM?wParam?LPARAM?lParam)
{

??????int?tx;
??????int?ty;
??????HDC?hdc;
??????SIZE?size;

????switch?(message)?
????{
?????????/*?case?MSG_PAINT:
??????????{
???????????????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-04-11?15:05??y\
?????文件???????11248??2018-04-11?14:48??y\bmpbkgnd
?????文件????????8318??2018-04-11?14:48??y\bmpbkgnd.c
?????文件?????????346??2009-12-25?16:02??y\bmpbkgnd_res_cn.h
?????文件?????????399??2009-12-25?16:02??y\bmpbkgnd_res_en.h
?????文件?????????346??2009-12-25?16:02??y\bmpbkgnd_res_tw.h
?????文件?????????262??2018-03-14?20:04??y\Makefile
?????文件?????????476??2018-04-11?15:32??y\說明.txt

評論

共有 條評論

相關(guān)資源