Compare commits

..
36 Commits
Author SHA1 Message Date
Vincent Wei 26a0527e55 harfbuzzex -> harfbuzz 2020-07-23 19:27:52 +08:00
Vincent Wei 165b89e5be change version to 4.0.8 2020-07-23 19:16:26 +08:00
Vincent Wei e5ac135443 depress compilation warnings for GCC 9 2020-07-23 18:54:19 +08:00
Vincent Wei fc6d3a686e Merge branch 'rel-4-0' of gitlab.fmsoft.cn:VincentWei/minigui into rel-4-0 2020-07-23 18:35:03 +08:00
Vincent Wei f16a629ade use mainstream HarfBuzz and hb_buffer_set_unicode_funcs 2020-07-23 18:34:56 +08:00
gengyue b074ebf3d7 modified for cross compile 2020-04-12 18:50:03 +08:00
gengyue 3cfc964836 modified for cross compile 2020-04-10 17:30:58 +08:00
Vincent Wei 6d287f72e3 change default exdriver for DRM engine: libhidrmdrivers-0.2.so.0 2020-03-27 16:46:20 +08:00
Vincent Wei bbac3b1796 fix compilation errors 2020-03-27 16:44:14 +08:00
Vincent Wei e25fbb39d0 for clients under MiniGUI-Processes, use the video information in shared resource segment to initialize the video 2020-03-27 16:28:30 +08:00
Vincent Wei 1b42c853ba change version to 4.0.7 2020-03-25 15:32:27 +08:00
Vincent Wei a932bc798e call EmptyClipRgn for the temporary clipping region 2020-03-25 15:32:16 +08:00
Vincent Wei 713fd0ccb8 reset olddownkey to zero when got a KEYUP event 2020-03-25 15:31:49 +08:00
Vincent Wei 1a63b30d32 use 0x01UL for shift 2020-03-25 15:31:31 +08:00
Vincent Wei 7ba6246dd1 fix typos 2020-03-25 15:31:14 +08:00
Vincent Wei 190b2fea97 release notes for 4.0.7 2020-03-22 13:21:56 +08:00
Vincent Wei f2c2c28e62 map hardware surface as scanout framebuffer for clients 2020-03-22 13:10:22 +08:00
Vincent Wei 837f2987fd remove conditional compilation for request ids 2020-03-22 13:09:42 +08:00
Vincent Wei 7de60f2b94 tune for call JoinLayer first 2020-03-22 13:09:18 +08:00
Vincent Wei 018340f42e check whether using external driver before calling flush_driver 2020-03-22 12:48:04 +08:00
Vincent Wei d4b226d2a5 fix a compilation error 2020-03-21 22:04:33 +08:00
Vincent Wei 699a68a9ac tune constant macros 2020-03-21 21:59:12 +08:00
Vincent Wei 5a6705d8bc copy chagnes from 5.0.0 to enhance DRM engine to support PROCS runmode 2020-03-21 21:30:31 +08:00
Vincent Wei e7cc2f1e35 change version to 4.0.7; DRM engine now support procs runmode 2020-03-21 21:29:44 +08:00
Vincent Wei 03b1dd9042 change version to 4.0.6 2020-03-12 11:16:59 +08:00
Vincent Wei 7651fbda35 handling mdev in INPUT structure 2020-03-12 11:15:59 +08:00
Vincent Wei 6927a22507 cleanup 2020-03-12 11:15:31 +08:00
Vincent Wei c640565f3b fix conditional compilation errors. 2020-03-12 11:15:17 +08:00
Vincent Wei c720b2a9ca Handle middle mouse button in Standalone and Processes runtime modes. 2020-03-12 11:14:40 +08:00
Vincent Wei 8b24b1243b bugfixing: Bad checking pci_accel_driver in FBCON engine 2020-03-12 11:14:04 +08:00
Vincent Wei d8b2895527 bugfixing: Bad checking cursor width and height in LoadCursorFromMem 2020-03-12 11:13:39 +08:00
Vincent Wei 2a4ead5e0f Call ThrowAwayMessages when failed to create a main window. 2020-03-12 11:13:20 +08:00
Vincent Wei 6f15548dc4 bugfixing: Bad handling of backspace character in SLEdit control. 2020-03-12 11:12:58 +08:00
Vincent Wei ef9048c582 restore mdev field in INPUT structure 2020-03-12 11:12:21 +08:00
Vincent Wei da15a1dbd5 change version to 4.0.6; make fbcon, console, imps2, textmode enabled by default 2020-03-12 11:11:55 +08:00
Vincent Wei 32aad95e7b notes for version 4.0.6 2020-03-12 11:10:27 +08:00
1078 changed files with 489209 additions and 510395 deletions
+1 -3
View File
@@ -4,8 +4,6 @@
*.al *.al
*.a *.a
*.so *.so
\#
am--include-marker
Makefile Makefile
Makefile.in Makefile.in
.deps/ .deps/
@@ -25,8 +23,8 @@ Makefile.in
/*config.h /*config.h
/*config.h.in /*config.h.in
/*config.h.in~ /*config.h.in~
/src/font/utils/emoji/ /src/font/utils/emoji/
/src/font/utils/ucd/ /src/font/utils/ucd/
/src/sysres/font_list /src/sysres/font_list
/src/sysres/license/dat_files/ /src/sysres/license/dat_files/
/configure~
+1 -1
View File
@@ -83,7 +83,7 @@ const se_font_description se_font_desc = {
/* The following is the scripteasy mem pool definition */ /* The following is the scripteasy mem pool definition */
#define SE_MEM_POOL_SIZE (64 * 1024) #define SE_MEM_POOL_SIZE (64 * 1024)
#define SE_CACHE_MEM_POOL_SIZE (256 * 1024) #define SE_CACHE_MEM_POOL_SIZE (256 * 1024)
int se_minigui_mem_pool[SE_MEM_POOL_SIZE]; int se_minigui_mem_pool[SE_MEM_POOL_SIZE];
+78 -176
View File
File diff suppressed because it is too large Load Diff
+78 -175
View File
File diff suppressed because it is too large Load Diff
+78 -175
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -1,6 +1,6 @@
MAJOR_VERSION = 5 MAJOR_VERSION = 4
MINOR_VERSION = 0 MINOR_VERSION = 0
MICRO_VERSION = 0 MICRO_VERSION = 4
EXTRAVERSION = EXTRAVERSION =
MINIGUI_RELEASE=$(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION)$(EXTRAVERSION) MINIGUI_RELEASE=$(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION)$(EXTRAVERSION)
+116 -341
View File
File diff suppressed because it is too large Load Diff
+627 -921
View File
File diff suppressed because it is too large Load Diff
+5 -13
View File
@@ -1,16 +1,8 @@
Version 5.0.13 (2023/08/31) Version 4.0.7 (2020/03/30)
This is a minor enhancement and bugfix release of MiniGUI 5.0.x, the stable version. This release needs the following packages:
Other packages for MiniGUI resource, tools, components, and samples: - The resource package: `minigui-res-4.0.0.tar.gz`
- The sample package: `mg-samples-4.0.1.tar.gz`
- GVFB: `gvfb-1.2.5.tar.gz` - The test cases package: `mg-tests-4.0.7.tar.gz`
- The resource package: `minigui-res-5.0.6.tar.gz`
- mGUtils component: `libmgutils-1.5.0.tar.gz`
- mGPlus component: `libmgplus-1.5.0.tar.gz`
- mGEff component: `libmgeff-1.5.0.tar.gz`
- mGNCS component: `libmgncs-1.5.0.tar.gz`
- mGNCS4Touch component: `libmgncs4touch-1.5.0.tar.gz`
- The test cases package: `mg-tests-5.0.0.tar.gz`
- The sample package: `mg-samples-5.0.0.tar.gz`
-44
View File
@@ -1,44 +0,0 @@
#!/bin/sh
rm config.cache config.status -f
./configure \
--disable-shared \
--enable-static \
--with-osname=freertos \
--with-targetname=external \
--with-runmode=sa \
--enable-mgslicefallback \
--disable-videopcxvfb \
--disable-videoqvfb \
--disable-videodrm \
--disable-videofbcon \
--enable-videocommlcd \
--enable-dummyial \
--disable-consoleial \
--disable-libinputial \
--enable-commial \
--disable-consoleimps2 \
--disable-mousecalibrate \
--enable-incoreres \
--disable-cursor \
--disable-clipboard \
--disable-adv2dapi \
--disable-savebitmap \
--disable-savescreen \
--disable-dblclk \
--disable-splash \
--disable-latin9support \
--disable-fullunicode \
--disable-rbfsupport \
--disable-vbfsupport \
--disable-upfsupport \
--disable-qpfsupport \
--disable-ttfsupport \
--disable-complexscripts \
--disable-ttfcache \
--disable-jpgsupport \
--disable-pngsupport \
--disable-flatlf \
--disable-textmode \
--disable-shmopen
-41
View File
@@ -1,41 +0,0 @@
#!/bin/sh
rm config.cache config.status -f
./configure \
--disable-shared \
--enable-static \
--with-osname=linux \
--with-targetname=external \
--with-runmode=sa \
--enable-mgslicefallback \
--disable-videopcxvfb \
--disable-videoqvfb \
--disable-videodrm \
--disable-videofbcon \
--enable-videocommlcd \
--enable-dummyial \
--disable-consoleial \
--disable-libinputial \
--enable-commial \
--disable-consoleimps2 \
--disable-mousecalibrate \
--enable-incoreres \
--disable-cursor \
--disable-savebitmap \
--disable-savescreen \
--disable-dblclk \
--disable-splash \
--disable-latin9support \
--disable-fullunicode \
--disable-rbfsupport \
--disable-vbfsupport \
--disable-upfsupport \
--disable-qpfsupport \
--disable-ttfsupport \
--disable-complexscripts \
--disable-ttfcache \
--disable-jpgsupport \
--disable-pngsupport \
--disable-flatlf \
--disable-textmode
+3 -3
View File
@@ -130,9 +130,9 @@
/* If using the C implementation of alloca, define if you know the /* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be direction of stack growth for your system; otherwise it will be
automatically deduced at run-time. automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */ STACK_DIRECTION = 0 => direction of growth unknown */
/* #undef STACK_DIRECTION */ /* #undef STACK_DIRECTION */
/* Define to 1 if you have the ANSI C header files. */ /* Define to 1 if you have the ANSI C header files. */
+3 -3
View File
@@ -130,9 +130,9 @@
/* If using the C implementation of alloca, define if you know the /* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be direction of stack growth for your system; otherwise it will be
automatically deduced at run-time. automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */ STACK_DIRECTION = 0 => direction of growth unknown */
/* #undef STACK_DIRECTION */ /* #undef STACK_DIRECTION */
/* Define to 1 if you have the ANSI C header files. */ /* Define to 1 if you have the ANSI C header files. */
+3 -3
View File
@@ -130,9 +130,9 @@
/* If using the C implementation of alloca, define if you know the /* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be direction of stack growth for your system; otherwise it will be
automatically deduced at run-time. automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */ STACK_DIRECTION = 0 => direction of growth unknown */
/* #undef STACK_DIRECTION */ /* #undef STACK_DIRECTION */
/* Define to 1 if you have the ANSI C header files. */ /* Define to 1 if you have the ANSI C header files. */
+1 -1
View File
@@ -366,7 +366,7 @@
/* #undef _MGINCOREFONT_VGAS */ /* #undef _MGINCOREFONT_VGAS */
/* Define if include in-core font: 12x12 RBF for GB2312 */ /* Define if include in-core font: 12x12 RBF for GB2312 */
#define _MGINCORERBF_GB12 1 #define _MGINCORERBF_GB12 1
/* Define if include in-core font: 16x16 RBF for GB2312 */ /* Define if include in-core font: 16x16 RBF for GB2312 */
/* #undef _MGINCORERBF_GB16 */ /* #undef _MGINCORERBF_GB16 */
+1 -1
View File
@@ -377,7 +377,7 @@
/* #undef _MGINCOREFONT_VGAS */ /* #undef _MGINCOREFONT_VGAS */
/* Define if include in-core font: 12x12 RBF for GB2312 */ /* Define if include in-core font: 12x12 RBF for GB2312 */
#define _MGINCORERBF_GB12 1 #define _MGINCORERBF_GB12 1
/* Define if include in-core font: 16x16 RBF for GB2312 */ /* Define if include in-core font: 16x16 RBF for GB2312 */
#define _MGINCORERBF_GB16 1 #define _MGINCORERBF_GB16 1
+1 -1
View File
@@ -377,7 +377,7 @@
/* #undef _MGINCOREFONT_VGAS */ /* #undef _MGINCOREFONT_VGAS */
/* Define if include in-core font: 12x12 RBF for GB2312 */ /* Define if include in-core font: 12x12 RBF for GB2312 */
#define _MGINCORERBF_GB12 1 #define _MGINCORERBF_GB12 1
/* Define if include in-core font: 16x16 RBF for GB2312 */ /* Define if include in-core font: 16x16 RBF for GB2312 */
#define _MGINCORERBF_GB16 1 #define _MGINCORERBF_GB16 1
-36
View File
@@ -1,36 +0,0 @@
# set your own targaet_os
TARGET_OS=freertos
##################################################
# set your compile tool #
CC=arm-linux-gnueabihf-gcc
CXX=arm-linux-gnueabihf-g++
CPP=arm-linux-gnueabihf-g++
AR=arm-linux-gnueabihf-ar
AS=arm-linux-gnueabihf-as
RANLIB=arm-linux-gnueabihf-ranlib
MAKE=/usr/bin/make
##################################################
ARFLAGS=-rc
COFLAG=-c
OBJ=o
LIBA=a
##################################################
# if you don't want to create dynamic, delete it #
LIBSO=so
SOFLAGS=-fPIC -shared -o
##################################################
##################################################
# set your compile flags and install prefix path #
PREFIX=/usr/local
CFLAGS+=-g -Wall -fPIC
LDFLAGS+=
##################################################
+5 -5
View File
@@ -91,12 +91,12 @@
/* Define to 1 if you have the `tmpfile' function. */ /* Define to 1 if you have the `tmpfile' function. */
#define HAVE_TMPFILE 1 #define HAVE_TMPFILE 1
/*#define HAVE_MODE_T 1*/ /*#define HAVE_MODE_T 1*/
/* Define to 1 if you have the `mktime' function. */ /* Define to 1 if you have the `mktime' function. */
#define HAVE_MKTIME 1 #define HAVE_MKTIME 1
/* Define to 1 if you have the `time' function. */ /* Define to 1 if you have the `time' function. */
#define HAVE_TIME 1 #define HAVE_TIME 1
/* Define to 1 if you have the `localtime' function. */ /* Define to 1 if you have the `localtime' function. */
#define HAVE_LOCALTIME 1 #define HAVE_LOCALTIME 1
@@ -140,9 +140,9 @@
/* If using the C implementation of alloca, define if you know the /* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be direction of stack growth for your system; otherwise it will be
automatically deduced at run-time. automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */ STACK_DIRECTION = 0 => direction of growth unknown */
/* #undef STACK_DIRECTION */ /* #undef STACK_DIRECTION */
/* Define to 1 if you have the ANSI C header files. */ /* Define to 1 if you have the ANSI C header files. */
+1 -1
View File
@@ -24,5 +24,5 @@
#pragma warning(disable:4101) /* unreferenced local variable */ #pragma warning(disable:4101) /* unreferenced local variable */
#pragma warning(error:4150) #pragma warning(error:4150)
#pragma warning(disable:4244) /* No possible loss of data warnings */ #pragma warning(disable:4244) /* No possible loss of data warnings */
#pragma warning(disable:4305) /* No truncation from int to char warnings */ #pragma warning(disable:4305) /* No truncation from int to char warnings */
+9 -9
View File
@@ -1,15 +1,15 @@
#! /bin/bash #! /bin/bash
keyword_list=" keyword_list="
__mg_license_create license_create
__mg_license_destroy license_destroy
__mg_screensaver_create screensaver_create
__mg_screensaver_destroy screensaver_destroy
__mg_splash_draw_framework splash_draw_framework
__mg_splash_progress splash_progress
__mg_splash_delay splash_delay
__mg_license_on_input license_on_input
__mg_license_on_timeout license_on_timeout
license_get_processor_id license_get_processor_id
#\s*include.*license\/c_files.* #\s*include.*license\/c_files.*
#\s*include.*license\.h #\s*include.*license\.h
-181
View File
@@ -1,181 +0,0 @@
#!/bin/bash
tab2space() {
sed -i 's/\t/ /g' `find . -name '*.c'`
sed -i 's/\t/ /g' `find . -name '*.h'`
sed -i 's/\s\+$//g' `find . -name '*.c'`
sed -i 's/\s\+$//g' `find . -name '*.h'`
}
# tab2space
# templates
# sed -i 's/\<AAA\>/__AAA/g' `grep '\<AAA\>' -rl include/ src/`
# sed -i 's/\<AAA\>/__mgAAA/g' `grep '\<AAA\>' -rl include/ src/`
# sed -i 's/\<AAA\>/__gdiAAA/g' `grep '\<AAA\>' -rl include/ src/`
# sed -i 's/\<AAA\>/__mg_AAA/g' `grep '\<AAA\>' -rl include/ src/`
# sed -i 's/\<AAA\>/dbg_AAA/g' `grep '\<AAA\>' -rl include/ src/`
# sed -i 's/\<kernel_alloc_z_order_info\>/__kernel_alloc_z_order_info/g' `grep kernel_alloc_z_order_info -rl include/ src/`
# sed -i 's/\<kernel_free_z_order_info\>/__kernel_free_z_order_info/g' `grep kernel_free_z_order_info -rl include/ src/`
# sed -i 's/\<kernel_change_z_order_mask_rect\>/__kernel_change_z_order_mask_rect/g' `grep kernel_change_z_order_mask_rect -rl include/ src/`
# sed -i 's/\<kernel_get_window_region\>/__kernel_get_window_region/g' `grep kernel_get_window_region -rl include/ src/`
# sed -i 's/\<kernel_get_next_znode\>/__kernel_get_next_znode/g' `grep kernel_get_next_znode -rl include/ src/`
# sed -i 's/\<kernel_get_prev_znode\>/__kernel_get_prev_znode/g' `grep kernel_get_prev_znode -rl include/ src/`
# sed -i 's/\<gui_open_ime_window\>/__gui_open_ime_window/g' `grep gui_open_ime_window -rl include/ src/`
# sed -i 's/\<_begin_fill_bitmap\>/__mg_begin_fill_bitmap/g' `grep _begin_fill_bitmap -rl include/ src/`
# sed -i 's/\<_fill_bitmap_scanline\>/__mg_fill_bitmap_scanline/g' `grep _fill_bitmap_scanline -rl include/ src/`
# sed -i 's/\<_end_fill_bitmap\>/__mg_end_fill_bitmap/g' `grep _end_fill_bitmap -rl include/ src/`
# sed -i 's/\<DumpCtrlClassInfoTable\>/dbg_DumpCtrlClassInfoTable/g' `grep DumpCtrlClassInfoTable -rl include/ src/`
# sed -i 's/\<GetPixelUnderCursor\>/kernel_GetPixelUnderCursor/g' `grep GetPixelUnderCursor -rl include/ src/`
# sed -i 's/\<update_secondary_dc\>/__mg_update_secondary_dc/g' `grep update_secondary_dc -rl include/ src/`
# sed -i 's/\<initialize_scripteasy\>/font_InitializeScripteasy/g' `grep initialize_scripteasy -rl include/ src/`
# sed -i 's/\<uninitialize_scripteasy\>/font_UninitializeScripteasy/g' `grep uninitialize_scripteasy -rl include/ src/`
# sed -i 's/\<free_window_element_data\>/__mg_free_window_element_data/g' `grep free_window_element_data -rl include/ src/`
# sed -i 's/\<append_window_element_data\>/__mg_append_window_element_data/g' `grep append_window_element_data -rl include/ src/`
# sed -i 's/\<set_window_element_data\>/__mg_set_window_element_data/g' `grep set_window_element_data -rl include/ src/`
# sed -i 's/\<__compsor_check_znodes\>/__mg_composite_dirty_znodes/g' `grep __compsor_check_znodes -rl include/ src/`
# sed -i 's/\<mg_linux_tty_init\>/__mg_linux_tty_init/g' `grep mg_linux_tty_init -rl include/ src/`
# sed -i 's/\<mg_linux_tty_enable_vt_switch\>/__mg_linux_tty_enable_vt_switch/g' `grep mg_linux_tty_enable_vt_switch -rl include/ src/`
# sed -i 's/\<mg_linux_tty_disable_vt_switch\>/__mg_linux_tty_disable_vt_switch/g' `grep mg_linux_tty_disable_vt_switch -rl include/ src/`
# sed -i 's/\<mg_linux_tty_switch_vt\>/__mg_linux_tty_switch_vt/g' `grep mg_linux_tty_switch_vt -rl include/ src/`
# sed -i 's/\<mg_linux_tty_fini\>/__mg_linux_tty_fini/g' `grep mg_linux_tty_fini -rl include/ src/`
# sed -i 's/\<DumpMenu\>/dbg_DumpMenu/g' `grep DumpMenu -rl include/ src/`
# sed -i 's/\<sysres_init_inner_resource\>/__sysres_init_inner_resource/g' `grep sysres_init_inner_resource -rl include/ src/`
# sed -i 's/\<sysres_get_system_res_path\>/__sysres_get_system_res_path/g' `grep sysres_get_system_res_path -rl include/ src/`
# sed -i 's/\<_set_pixel_helper\>/_gdi_set_pixel_helper/g' `grep _set_pixel_helper -rl src/`
# sed -i 's/\<err_dump\>/__mg_err_dump/g' `grep err_dump -rl src/`
# sed -i 's/\<err_msg\>/__mg_err_msg/g' `grep err_msg -rl src/`
# sed -i 's/\<err_quit\>/__mg_err_quit/g' `grep err_quit -rl src/`
# sed -i 's/\<err_ret\>/__mg_err_ret/g' `grep err_ret -rl src/`
# sed -i 's/\<err_sys\>/__mg_err_sys/g' `grep err_sys -rl src/`
# sed -i 's/\<mg_dispatch_timer_message\>/__mg_dispatch_timer_message/g' `grep mg_dispatch_timer_message -rl src/`
# sed -i 's/\<mgDeleteObject\>/mg_DeleteObject/g' `grep mgDeleteObject -rl src/`
# sed -i 's/\<init_arabic_kbd_layout\>/__mg_init_arabic_kbd_layout/g' `grep init_arabic_kbd_layout -rl src/`
# sed -i 's/\<init_default_kbd_layout\>/__mg_init_default_kbd_layout/g' `grep init_default_kbd_layout -rl src/`
# sed -i 's/\<init_de_kbd_layout\>/__mg_init_de_kbd_layout/g' `grep init_de_kbd_layout -rl src/`
# sed -i 's/\<init_delatin1_kbd_layout\>/__mg_init_delatin1_kbd_layout/g' `grep init_delatin1_kbd_layout -rl src/`
# sed -i 's/\<init_escp850_kbd_layout\>/__mg_init_escp850_kbd_layout/g' `grep init_escp850_kbd_layout -rl src/`
# sed -i 's/\<init_es_kbd_layout\>/__mg_init_es_kbd_layout/g' `grep init_es_kbd_layout -rl src/`
# sed -i 's/\<init_fr_kbd_layout\>/__mg_init_fr_kbd_layout/g' `grep init_fr_kbd_layout -rl src/`
# sed -i 's/\<init_frpc_kbd_layout\>/__mg_init_frpc_kbd_layout/g' `grep init_frpc_kbd_layout -rl src/`
# sed -i 's/\<init_it_kbd_layout\>/__mg_init_it_kbd_layout/g' `grep init_it_kbd_layout -rl src/`
# sed -i 's/\<init_hebrew_kbd_layout\>/__mg_init_hebrew_kbd_layout/g' `grep init_hebrew_kbd_layout -rl src/`
# sed -i 's/\<InitAutoInput\>/ial_InitAutoInput/g' `grep InitAutoInput -rl src/`
# sed -i 's/\<InitDummyInput\>/ial_InitDummyInput/g' `grep InitDummyInput -rl src/`
# sed -i 's/\<InitLibInput\>/ial_InitLibInput/g' `grep InitLibInput -rl src/`
# sed -i 's/\<InitNetInput\>/ial_InitNetInput/g' `grep InitNetInput -rl src/`
# sed -i 's/\<InitPCXVFBInput\>/ial_InitPCXVFBInput/g' `grep InitPCXVFBInput -rl src/`
# sed -i 's/\<InitRandomInput\>/ial_InitRandomInput/g' `grep InitRandomInput -rl src/`
# sed -i 's/\<InitializeResManager\>/mg_InitResManager/g' `grep InitializeResManager -rl src/`
# sed -i 's/\<InitTextBitmapBuffer\>/gdi_InitTextBitmapBuffer/g' `grep InitTextBitmapBuffer -rl src/`
# sed -i 's/\<clipboard_op\>/__mg_clipboard_op/g' `grep clipboard_op -rl src/`
# sed -i 's/\<mg_miFreeArcCache\>/miFreeArcCache/g' `grep mg_miFreeArcCache -rl src/`
# sed -i 's/\<mgNewObject\>/mgNewObjectEx/g' `grep mgNewObject -rl src/`
# sed -i 's/\<mg_newObject\>/mgNewObject/g' `grep mg_newObject -rl src/`
# sed -i 's/\<mg_remove_timers_by_msg_queue\>/__mg_remove_timers_by_msg_queue/g' `grep mg_remove_timers_by_msg_queue -rl src/`
# sed -i 's/\<mg_DeleteObject\>/mgDeleteObject/g' `grep mg_DeleteObject -rl src/`
# sed -i 's/\<GetMsgQueueThisThread\>/getMsgQueueThisThread/g' `grep GetMsgQueueThisThread -rl src/`
# sed -i 's/\<pMessages\>/pMsgQueue/g' `grep pMessages -rl src/`
# sed -i 's/\<mg_InitMsgQueueThisThread\>/mg_AllocMsgQueueThisThread/g' `grep mg_InitMsgQueueThisThread -rl include/ src/`
# sed -i 's/\<mg_AllocMsgQueueThisThread\>/mg_AllocMsgQueueForThisThread/g' `grep mg_AllocMsgQueueThisThread -rl src/`
# sed -i 's/\<mg_FreeMsgQueueThisThread\>/mg_FreeMsgQueueForThisThread/g' `grep mg_FreeMsgQueueThisThread -rl src/`
# sed -i 's/\<GetMsgQueueThisThread\>/mg_GetMsgQueueForThisThread/g' `grep GetMsgQueueThisThread -rl src/`
# sed -i 's/\<kernel_GetMsgQueue\>/getMsgQueue/g' `grep kernel_GetMsgQueue -rl src/`
# sed -i 's/\<BE_THIS_THREAD\>/isWindowInThisThread/g' `grep BE_THIS_THREAD -rl src/`
# sed -i 's/\<SetMsgQueueTimerFlag\>/setMsgQueueTimerFlag/g' `grep SetMsgQueueTimerFlag -rl src/`
# sed -i 's/\<RemoveMsgQueueTimerFlag\>/removeMsgQueueTimerFlag/g' `grep RemoveMsgQueueTimerFlag -rl src/`
# sed -i 's/\<getMsgQueueByWindowInThisThread\>/getMsgQueueIfWindowInThisThread/g' `grep getMsgQueueByWindowInThisThread -rl include/ src/`
# sed -i 's/\<FirstTimerSlot\>/first_time_slot/g' `grep FirstTimerSlot -rl src/`
# sed -i 's/\<TimerMask\>/expired_timer_mask/g' `grep TimerMask -rl src/`
# sed -i 's/\<first_time_slot\>/first_timer_slot/g' `grep first_time_slot -rl src/`
# sed -i 's/\<__mg_dispatch_timer_message\>/__mg_check_expired_timers/g' `grep __mg_dispatch_timer_message -rl src/`
# sed -i 's/\<4\.2\.0\>/5.0.0/g' `grep '4\.2\.0' -rl include/ src/`
# sed -i 's/\<__mg_check_hook_func\>/____mg_check_hook_event/g' `grep __mg_check_hook_func -rl src/`
# sed -i 's/\<____mg_check_hook_event\>/__mg_check_hook_event/g' `grep ____mg_check_hook_event -rl src/`
# sed -i 's/\<__mg_capture_wnd\>/_captured_wnd/g' `grep __mg_capture_wnd -rl include/ src/`
# sed -i 's/\<_captured_wnd\>/__mg_captured_wnd/g' `grep _captured_wnd -rl include/ src/`
# sed -i 's/\<__mg_check_hook_event\>/__mg_check_hook_func/g' `grep __mg_check_hook_event -rl include/ src/`
# sed -i 's/\<DEF_NR_FIXEDZNODES\>/NR_FIXED_ZNODES/g' `grep DEF_NR_FIXEDZNODES -rl src/`
#sed -i 's/\<ZOF_TYPE_TOPMOST\>/__ZOF_TYPE_HIGHER/g' `grep ZOF_TYPE_TOPMOST -rl include/ src/`
# sed -i 's/\<__ZOF_TYPE_HIGHER\>/ZOF_TYPE_HIGHER/g' `grep __ZOF_TYPE_HIGHER -rl include/ src/`
# sed -i 's/\<SetDesktopTimerFlag\>/AlertDesktopTimerEvent/g' `grep SetDesktopTimerFlag -rl include/ src/`
# sed -i 's/\<__mg_update_timer_count\>/__mg_update_tick_count/g' `grep __mg_update_timer_count -rl include/ src/`
# sed -i 's/\<__mg_timer_counter\>/__mg_tick_counter/g' `grep __mg_timer_counter -rl include/ src/`
# sed -i 's/\<pAdd\>/pSyncMsg/g' `grep '\<pAdd\>' -rl include/ src/`
# sed -i 's/\<isWindowInThisThread\>/getMainWinIfWindowInThisThread/g' `grep '\<isWindowInThisThread\>' -rl include/ src/`
# sed -i 's/\<GetMainVirtWindowById\>/GetHostedById/g' `grep '\<GetMainVirtWindowById\>' -rl include/ src/`
# sed -i 's/\<__mg_os_start_time_ms\>/__mg_os_start_time/g' `grep '\<__mg_os_start_time_ms\>' -rl include/ src/`
# sed -i 's/\<Gets\>/Get/g' `grep '\<Gets\>' -rl include/ src/`
# sed -i 's/\<Sets\>/Set/g' `grep '\<Sets\>' -rl include/ src/`
# sed -i 's/\<Retrieves\>/Retrieve/g' `grep '\<Retrieves\>' -rl include/ src/`
# sed -i 's/\<Determines\>/Determine/g' `grep '\<Determines\>' -rl include/ src/`
# sed -i 's/\<Checks\>/Check/g' `grep '\<Checks\>' -rl include/ src/`
#sed -i 's/\<SetWindowExStyle\>/gui_SetWindowExStyle/g' `grep '\<SetWindowExStyle\>' -rl include/ src/`
#sed -i 's/\<AddNewControlClass\>/gui_AddNewControlClass/g' `grep '\<AddNewControlClass\>' -rl include/ src/`
#sed -i 's/\<SetCtrlClassAddData\>/gui_SetCtrlClassAddData/g' `grep '\<SetCtrlClassAddData\>' -rl include/ src/`
#sed -i 's/\<GetCtrlClassAddData\>/gui_GetCtrlClassAddData/g' `grep '\<GetCtrlClassAddData\>' -rl include/ src/`
# sed -i 's/\<get_valid_dc\>/get_effective_dc/g' `grep '\<get_valid_dc\>' -rl include/ src/`
# sed -i 's/\<release_valid_dc\>/release_effective_dc/g' `grep '\<release_valid_dc\>' -rl include/ src/`
# sed -i 's/\<gui_GetMainWindowPtrOfControl\>/checkAndGetMainWindowPtrOfControl/g' `grep '\<gui_GetMainWindowPtrOfControl\>' -rl include/ src/`
# sed -i 's/\<gui_CheckAndGetMainWindowPtr\>/checkAndGetMainWindowPtrOfMainWin/g' `grep '\<gui_CheckAndGetMainWindowPtr\>' -rl include/ src/`
# sed -i 's/\<GetSubDCInSecondaryDC\>/GetDCInSecondarySurface/g' `grep '\<GetSubDCInSecondaryDC\>' -rl include/ src/`
# sed -i 's/\<checkAndGetMainWindowPtrOfMainWin\>/checkAndGetMainWinIfMainWin/g' `grep '\<checkAndGetMainWindowPtrOfMainWin\>' -rl include/ src/`
# sed -i 's/\<checkAndGetMainWindowPtrOfControl\>/checkAndGetMainWinIfWindow/g' `grep '\<checkAndGetMainWindowPtrOfControl\>' -rl include/ src/`
# sed -i 's/\<mg_GetMsgQueueForThisThread\>/getMsgQueueForThisThread/g' `grep '\<mg_GetMsgQueueForThisThread\>' -rl include/ src/`
# sed -i 's/\<IS_SHAREDFB_SCHEMA\>/IS_SHAREDFB_SCHEMA_PROCS/g' `grep '\<IS_SHAREDFB_SCHEMA\>' -rl include/ src/`
sed -i 's/\<REQID_GETWPSURFACE\>/REQID_GETSHAREDSURFACE/g' `grep '\<REQID_GETWPSURFACE\>' -rl include/ src/`
exit 0
+183 -261
View File
File diff suppressed because it is too large Load Diff
+3 -53
View File
@@ -1,6 +1,6 @@
# This configuration file is for MiniGUI V4.2.x or later # This configuration file is for MiniGUI V4.0.x or later
# #
# Copyright (C) 2002~2020 FMSoft # Copyright (C) 2002~2019 FMSoft
# Copyright (C) 1998~2002 Wei Yongming. # Copyright (C) 1998~2002 Wei Yongming.
# #
# Web: http://www.minigui.com # Web: http://www.minigui.com
@@ -36,25 +36,6 @@ mtype=IMPS2
# Linux IAL engine based on libinput # Linux IAL engine based on libinput
# ial_engine=libinut # ial_engine=libinut
#{{ifdef _MGSCHEMA_COMPOSITING
# Options for compositing schema
[compositing_schema]
# The size of wallpaper pattern surface (the fake screen for clients).
# Optional values: <w>x<h>, full, half, quarter, octant, and empty.
# Default value is empty.
wallpaper_pattern_size=full
# wallpaper_pattern_size=half
# wallpaper_pattern_size=quarter
# wallpaper_pattern_size=octant
# wallpaper_pattern_size=empty
# wallpaper_pattern_size=32x32
# The shared object name of the default compositor. If it is not defined
# or failed to load, MiniGUI will use the built-in fallback compositor.
# The equivalent environment variable: MG_DEF_COMPOSITOR_SO
# def_compositor_so=
#}}
#{{ifdef _MGGAL_DRM #{{ifdef _MGGAL_DRM
[drm] [drm]
defaultmode=1024x768-32bpp defaultmode=1024x768-32bpp
@@ -72,30 +53,11 @@ device=/dev/dri/card0
# The default value is 96. # The default value is 96.
dpi=96 dpi=96
# Whether double buffering is enabled.
# Use `true` or `yes` for enabled, anything else for disabled.
# Note that under compositing schema, double buffering is always enabled.
# Since 5.0.0.
double_buffering=true
# The filename of the shared library for the external driver. # The filename of the shared library for the external driver.
# The equivalent environment variable: MG_GAL_DRM_DRIVER # The equivalent environment variable: MG_GAL_DRM_DRIVER
exdriver=libhidrmdrivers-0.2.so.0 exdriver=libhidrmdrivers-0.2.so.0
#}} #}}
#{{ifdef _MGIAL_SINGLETOUCHKEY
[singletouchkey]
# The touch device; use none to disable touch event.
touch_dev=/dev/input/event0
# The key device; use none to disable key event.
key_dev=none
# The number of keys; only valid if the key device is not `none` and can be opened.
nr_keys=2
# The maps from Linux keycode to MiniGUI scancode; only valid if `nr_keys` > 0.
keycode2scancode0=20,1
keycode2scancode1=50,2
#}}
#{{ifdef _MGIAL_LIBINPUT #{{ifdef _MGIAL_LIBINPUT
[libinput] [libinput]
seat=seat0 seat=seat0
@@ -105,12 +67,6 @@ seat=seat0
[fbcon] [fbcon]
defaultmode=1024x768-16bpp defaultmode=1024x768-16bpp
dpi=96 dpi=96
# Whether double buffering is enabled (only for threads and standalone runmodes).
# Use `true` or `yes` for enabled, anything else for disabled.
# Note that under compositing schema, double buffering is always enabled.
# Since 5.0.10.
double_buffering=true
#}} #}}
#{{ifdef _MGGAL_PCXVFB #{{ifdef _MGGAL_PCXVFB
@@ -127,7 +83,7 @@ defaultmode=800x600-16bpp
[shadow] [shadow]
real_engine=pc_xvfb real_engine=pc_xvfb
defaultmode=800x600-16bpp defaultmode=800x600-16bpp
rotate_screen=ccw rotate_screen=normal
#}} #}}
#{{ifdef _MGGAL_MLSHADOW #{{ifdef _MGGAL_MLSHADOW
@@ -220,12 +176,6 @@ cursor20=h_select.cur
cursor21=ho_split.cur cursor21=ho_split.cur
cursor22=ve_split.cur cursor22=ve_split.cur
# Under compositing schema, you can specify a PNG file as the cursor.
# You should use a 'hotspotN' key to specify the hotspot coordinates
# of a PNG cursor. For example:
# cursor23=foo.png
# hotspot23=32,32
[resinfo] [resinfo]
respath=/usr/local/share/minigui/res/ respath=/usr/local/share/minigui/res/
-24
View File
@@ -1,24 +0,0 @@
/*
* The following code creates a virtual window.
*/
static LRESULT
my_virt_wnd_proc (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)
{
switch (message) {
...
}
return DefaultVirtualWinProc (hwnd, message, wparam, lparam);
}
...
HWND new_wnd = CreateVirtualWindow (HWND_NULL, my_virt_wnd_proc,
"A Virtual Window", 0, 0);
if (new_wnd != HWND_INVALID) {
// failed to create the virtual window.
}
// go on...
...
+13 -13
View File
@@ -2,19 +2,19 @@
* The following code destroies all resource used by the main window * The following code destroies all resource used by the main window
* and then destroies the main window itself. * and then destroies the main window itself.
*/ */
case MSG_CLOSE: case MSG_CLOSE:
/* Destroy the resource used by the main window. */ /* Destroy the resource used by the main window. */
DestroyLogFont (logfont1); DestroyLogFont (logfont1);
DestroyLogFont (logfont2); DestroyLogFont (logfont2);
DestroyLogFont (logfont3); DestroyLogFont (logfont3);
/* Destroy the child windows. */ /* Destroy the child windows. */
DestroyWindow(hWndButton); DestroyWindow(hWndButton);
DestroyWindow(hWndEdit); DestroyWindow(hWndEdit);
/* Destroy the main window. */ /* Destroy the main window. */
DestroyMainWindow (hWnd); DestroyMainWindow (hWnd);
/* Send a MSG_QUIT message to quit the message loop. */ /* Send a MSG_QUIT message to quit the message loop. */
PostQuitMessage(hWnd); PostQuitMessage(hWnd);
return 0; return 0;
+1 -1
View File
@@ -18,7 +18,7 @@ void OnModeDrawText (HDC hdc)
rc3.left = 0; rc3.top = 361; rc3.right = 401; rc3.bottom = 451; rc3.left = 0; rc3.top = 361; rc3.right = 401; rc3.bottom = 451;
rc4.left = 0; rc4.top = 461; rc4.right = 401; rc4.bottom = 551; rc4.left = 0; rc4.top = 461; rc4.right = 401; rc4.bottom = 551;
SetBkColor (hdc, DWORD2Pixel (hdc, RGBA_lightwhite)); SetBkColor (hdc, COLOR_lightwhite);
Rectangle (hdc, rc1.left, rc1.top, rc1.right, rc1.bottom); Rectangle (hdc, rc1.left, rc1.top, rc1.right, rc1.bottom);
Rectangle (hdc, rc2.left, rc2.top, rc2.right, rc2.bottom); Rectangle (hdc, rc2.left, rc2.top, rc2.right, rc2.bottom);
+7 -7
View File
@@ -2,10 +2,10 @@
* The handler makes sure that the client area always * The handler makes sure that the client area always
* is _WIDTH wide and _HEIGHT high. * is _WIDTH wide and _HEIGHT high.
*/ */
case MSG_SIZECHANGED: case MSG_SIZECHANGED:
{ {
RECT* rcClient = (RECT*)lParam; RECT* rcClient = (RECT*)lParam;
rcClient->right = rcClient->left + _WIDTH; rcClient->right = rcClient->left + _WIDTH;
rcClient->bottom = rcClient->top + _HEIGHT; rcClient->bottom = rcClient->top + _HEIGHT;
return 1; return 1;
} }
+10 -10
View File
@@ -2,14 +2,14 @@
* The handler set the actual size of the window always * The handler set the actual size of the window always
* to be _WIDTH wide and _HEIGHT high. * to be _WIDTH wide and _HEIGHT high.
*/ */
case MSG_SIZECHANGING: case MSG_SIZECHANGING:
{ {
const RECT* rcExpect = (const RECT*)wParam; const RECT* rcExpect = (const RECT*)wParam;
RECT* rcResult = (RECT*)lParam; RECT* rcResult = (RECT*)lParam;
rcResult->left = rcExpect->left; rcResult->left = rcExpect->left;
rcResult->top = rcExpect->top; rcResult->top = rcExpect->top;
rcResult->right = rcExpect->left + _WIDTH; rcResult->right = rcExpect->left + _WIDTH;
rcResult->bottom = rcExpect->top + _HEIGHT; rcResult->bottom = rcExpect->top + _HEIGHT;
return 0; return 0;
} }
+8 -8
View File
@@ -3,14 +3,14 @@
*/ */
case MSG_PAINT: case MSG_PAINT:
{ {
HDC hdc = BeginPaint (hWnd); HDC hdc = BeginPaint (hWnd);
for (j = 0; j < 10; j ++) { for (j = 0; j < 10; j ++) {
if (RectVisible (hdc, rcs + j)) { if (RectVisible (hdc, rcs + j)) {
FillBox (hdc, rcs[j].left, rcs[j].top, rcs [j].right, rcs [j].bottom); FillBox (hdc, rcs[j].left, rcs[j].top, rcs [j].right, rcs [j].bottom);
} }
} }
EndPaint (hWnd, hdc); EndPaint (hWnd, hdc);
return 0; return 0;
} }
+5 -8
View File
@@ -17,7 +17,7 @@ static LRESULT StepControlProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM l
info = (HELPWININFO*)GetWindowAdditionalData (hwnd); info = (HELPWININFO*)GetWindowAdditionalData (hwnd);
/* Draw the step information. */ /* Draw the step information. */
... ......
EndPaint (hwnd, hdc); EndPaint (hwnd, hdc);
break; break;
@@ -43,7 +43,8 @@ static LRESULT StepControlProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM l
return DefaultControlProc (hwnd, message, wParam, lParam); return DefaultControlProc (hwnd, message, wParam, lParam);
} }
static BOOL RegisterStepControl (void)
static BOOL RegisterStepControl ()
{ {
int result; int result;
WNDCLASS StepClass; WNDCLASS StepClass;
@@ -51,17 +52,13 @@ static BOOL RegisterStepControl (void)
StepClass.spClassName = STEP_CTRL_NAME; StepClass.spClassName = STEP_CTRL_NAME;
StepClass.dwStyle = 0; StepClass.dwStyle = 0;
StepClass.hCursor = GetSystemCursor (IDC_ARROW); StepClass.hCursor = GetSystemCursor (IDC_ARROW);
#ifdef _MGSCHEMA_COMPOSITING StepClass.iBkColor = COLOR_lightwhite;
StepClass.dwBkRGBA = COLOR_lightwhite;
#else
StepClass.iBkColor = PIXEL_lightwhite;
#endif
StepClass.WinProc = StepControlProc; StepClass.WinProc = StepControlProc;
return RegisterWindowClass (&StepClass); return RegisterWindowClass (&StepClass);
} }
static void UnregisterStepControl (void) static void UnregisterStepControl ()
{ {
UnregisterWindowClass (STEP_CTRL_NAME); UnregisterWindowClass (STEP_CTRL_NAME);
} }
+78 -102
View File
@@ -24,7 +24,7 @@
and Graphics User Interface (GUI) support system for embedded systems and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices. and smart IoT devices.
Copyright (C) 2002~2020, Beijing FMSoft Technologies Co., Ltd. Copyright (C) 2002~2018, Beijing FMSoft Technologies Co., Ltd.
Copyright (C) 1998~2002, WEI Yongming Copyright (C) 1998~2002, WEI Yongming
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
@@ -129,8 +129,7 @@
* *
* \sa _MINIGUI_VERSION_CODE * \sa _MINIGUI_VERSION_CODE
*/ */
#define _VERSION_CODE(major, minor, micro) \ #define _VERSION_CODE(major, minor, micro) (((major)<<16) | ((minor)<<8) | (micro))
(((major)<<16) | ((minor)<<8) | (micro))
/** /**
* \def _MINIGUI_VERSION_CODE * \def _MINIGUI_VERSION_CODE
@@ -138,10 +137,8 @@
* *
* \sa _VERSION_CODE * \sa _VERSION_CODE
*/ */
#define _MINIGUI_VERSION_CODE \ #define _MINIGUI_VERSION_CODE \
((MINIGUI_MAJOR_VERSION << 16) | \ ((MINIGUI_MAJOR_VERSION << 16) | (MINIGUI_MINOR_VERSION << 8) | MINIGUI_MICRO_VERSION)
(MINIGUI_MINOR_VERSION << 8) | \
MINIGUI_MICRO_VERSION)
/** @} end of version_info */ /** @} end of version_info */
@@ -307,11 +304,9 @@ MGUI_COMPILE_TIME_ASSERT(sint64, sizeof(Sint64) == 8);
* *
* to write endianness independent code. * to write endianness independent code.
*/ */
#if defined(__i386__) || defined(__ia64__) || defined(__x86_64__) || \ #if defined(__i386__) || defined(__ia64__) || defined(__x86_64__) || defined(__amd64) || \
defined(__amd64) || \
(defined(__alpha__) || defined(__alpha)) || \ (defined(__alpha__) || defined(__alpha)) || \
defined(__arm__) || defined(__aarch64__) || \ defined(__arm__) || defined(__aarch64__) || \
defined(__loongarch__) || \
defined(__riscv) || \ defined(__riscv) || \
(defined(__CC_ARM) && !defined(__BIG_ENDIAN)) || \ (defined(__CC_ARM) && !defined(__BIG_ENDIAN)) || \
(defined(__mips__) && defined(__MIPSEL__)) || \ (defined(__mips__) && defined(__MIPSEL__)) || \
@@ -645,12 +640,12 @@ typedef unsigned char QDWORD;
#define QDWORD_SHIFT 8 #define QDWORD_SHIFT 8
#endif #endif
#define MAKEDWORD(q1, q2, q3, q4) \ #define MAKEDWORD(q1, q2, q3, q4) \
((DWORD)( \ ((DWORD)( \
(((DWORD)(QDWORD)(q1))) | \ (((DWORD)(QDWORD)(q1))) | \
(((DWORD)((QDWORD)(q2))) << QDWORD_SHIFT) | \ (((DWORD)((QDWORD)(q2))) << QDWORD_SHIFT) | \
(((DWORD)((QDWORD)(q3))) << (QDWORD_SHIFT*2)) | \ (((DWORD)((QDWORD)(q3))) << (QDWORD_SHIFT*2)) | \
(((DWORD)((QDWORD)(q4))) << (QDWORD_SHIFT*3)) \ (((DWORD)((QDWORD)(q4))) << (QDWORD_SHIFT*3)) \
)) ))
#define FIRST_QDWORD(dw) ((QDWORD)(((DWORD)(dw)))) #define FIRST_QDWORD(dw) ((QDWORD)(((DWORD)(dw))))
@@ -734,8 +729,7 @@ typedef UINT_PTR LPARAM;
* *
* \sa LOBYTE, HIBYTE * \sa LOBYTE, HIBYTE
*/ */
#define MAKEWORD(low, high) \ #define MAKEWORD(low, high) ((WORD)(((BYTE)(low)) | (((WORD)((BYTE)(high))) << NR_BITS_BYTE)))
((WORD)(((BYTE)(low)) | (((WORD)((BYTE)(high))) << NR_BITS_BYTE)))
/** /**
* \def MAKEWORD16(low, high) * \def MAKEWORD16(low, high)
@@ -743,8 +737,7 @@ typedef UINT_PTR LPARAM;
* *
* \sa LOBYTE, HIBYTE * \sa LOBYTE, HIBYTE
*/ */
#define MAKEWORD16(low, high) \ #define MAKEWORD16(low, high) ((WORD16)(((BYTE)(low)) | (((WORD16)((BYTE)(high))) << 8)))
((WORD16)(((BYTE)(low)) | (((WORD16)((BYTE)(high))) << 8)))
/** /**
* \def MAKEDWORD32(first, second, third, fourth) * \def MAKEDWORD32(first, second, third, fourth)
@@ -752,12 +745,12 @@ typedef UINT_PTR LPARAM;
* *
* \sa MAKEWORD16, FIRSTBYTE, SECONDBYTE, THIRDBYTE, FOURTHBYTE * \sa MAKEWORD16, FIRSTBYTE, SECONDBYTE, THIRDBYTE, FOURTHBYTE
*/ */
#define MAKEDWORD32(first, second, third, fourth) \ #define MAKEDWORD32(first, second, third, fourth) \
((DWORD32)( \ ((DWORD32)( \
((BYTE)(first)) | \ ((BYTE)(first)) | \
(((DWORD32)((BYTE)(second))) << 8) | \ (((DWORD32)((BYTE)(second))) << 8) | \
(((DWORD32)((BYTE)(third))) << 16) | \ (((DWORD32)((BYTE)(third))) << 16) | \
(((DWORD32)((BYTE)(fourth))) << 24) \ (((DWORD32)((BYTE)(fourth))) << 24) \
)) ))
/** /**
@@ -766,12 +759,12 @@ typedef UINT_PTR LPARAM;
* *
* \sa MAKEWORD, FIRSTBYTE, SECONDBYTE, THIRDBYTE, FOURTHBYTE * \sa MAKEWORD, FIRSTBYTE, SECONDBYTE, THIRDBYTE, FOURTHBYTE
*/ */
#define MAKEWPARAM(first, second, third, fourth) \ #define MAKEWPARAM(first, second, third, fourth) \
((WPARAM)( \ ((WPARAM)( \
((BYTE)(first)) | \ ((BYTE)(first)) | \
(((WPARAM)((BYTE)(second))) << 8) | \ (((WPARAM)((BYTE)(second))) << 8) | \
(((WPARAM)((BYTE)(third))) << 16) | \ (((WPARAM)((BYTE)(third))) << 16) | \
(((WPARAM)((BYTE)(fourth))) << 24) \ (((WPARAM)((BYTE)(fourth))) << 24) \
)) ))
/** /**
@@ -819,8 +812,7 @@ typedef UINT_PTR LPARAM;
* *
* \sa MAKELONG * \sa MAKELONG
*/ */
#define HIWORD(l) \ #define HIWORD(l) ((WORD)((((DWORD)(l)) >> NR_BITS_WORD) & BITMASK_WORD))
((WORD)((((DWORD)(l)) >> NR_BITS_WORD) & BITMASK_WORD))
/** /**
* \def LOSWORD(l) * \def LOSWORD(l)
@@ -835,34 +827,31 @@ typedef UINT_PTR LPARAM;
* *
* \sa MAKELONG * \sa MAKELONG
*/ */
#define HISWORD(l) \ #define HISWORD(l) ((SWORD)((((DWORD)(l)) >> NR_BITS_WORD) & BITMASK_WORD))
((SWORD)((((DWORD)(l)) >> NR_BITS_WORD) & BITMASK_WORD))
/** /**
* \def MAKELONG32(low, high) * \def MAKELONG32(low, high)
* \brief Makes a 32-bit double word from \a low word and \a high word which are both in 16-bit. * \brief Makes a 32-bit double word from \a low word and \a high word which are both in 16-bit.
* \sa MAKELONG * \sa MAKELONG
*/ */
#define MAKELONG32(low, high) \ #define MAKELONG32(low, high) ((DWORD32)(((WORD16)(low)) | (((DWORD32)((WORD16)(high))) << 16)))
((DWORD32)(((WORD16)(low)) | (((DWORD32)((WORD16)(high))) << 16)))
/** /**
* \def MAKELONG(low, high) * \def MAKELONG(low, high)
* \brief Makes a double word with pointer precision from \a low word and \a high word. * \brief Makes a double word with pointer precision from \a low word and \a high word.
* \sa MAKELONG32 * \sa MAKELONG32
*/ */
#define MAKELONG(low, high) \ #define MAKELONG(low, high) ((DWORD)(((WORD)(low)) | (((DWORD)((WORD)(high))) << NR_BITS_WORD)))
((DWORD)(((WORD)(low)) | (((DWORD)((WORD)(high))) << NR_BITS_WORD)))
/** /**
* \var typedef DWORD32 RGBCOLOR * \var typedef DWORD RGBCOLOR
* \brief A type definition for a RGB color value. * \brief A type definition for a RGB color.
*/ */
typedef DWORD32 RGBCOLOR; typedef DWORD32 RGBCOLOR;
/** /**
* \def GetRValue(rgba) * \def GetRValue(rgba)
* \brief Get the red component from a RGBA quadruple value \a rgba. * \brief Gets the red component from a RGBA triple value \a rgba.
* *
* You can make a RGBA triple by using MakeRGBA. * You can make a RGBA triple by using MakeRGBA.
* *
@@ -871,7 +860,7 @@ typedef DWORD32 RGBCOLOR;
#define GetRValue(rgba) ((BYTE)(rgba)) #define GetRValue(rgba) ((BYTE)(rgba))
/** /**
* \def GetGValue(rgba) * \def GetGValue(rgba)
* \brief Get the green component from a RGBA quadruple value \a rgba. * \brief Gets the green component from a RGBA triple value \a rgba.
* *
* You can make a RGBA triple by using MakeRGBA. * You can make a RGBA triple by using MakeRGBA.
* *
@@ -880,7 +869,7 @@ typedef DWORD32 RGBCOLOR;
#define GetGValue(rgba) ((BYTE)(((DWORD32)(rgba)) >> 8)) #define GetGValue(rgba) ((BYTE)(((DWORD32)(rgba)) >> 8))
/** /**
* \def GetBValue(rgba) * \def GetBValue(rgba)
* \brief Get the blue component from a RGBA quadruple value \a rgba. * \brief Gets the blue component from a RGBA triple value \a rgba.
* *
* You can make a RGBA triple by using MakeRGBA. * You can make a RGBA triple by using MakeRGBA.
* *
@@ -889,7 +878,7 @@ typedef DWORD32 RGBCOLOR;
#define GetBValue(rgba) ((BYTE)((DWORD32)(rgba) >> 16)) #define GetBValue(rgba) ((BYTE)((DWORD32)(rgba) >> 16))
/** /**
* \def GetAValue(rgba) * \def GetAValue(rgba)
* \brief Get the alpha component from a RGBA quadruple value \a rgba. * \brief Gets the alpha component from a RGBA triple value \a rgba.
* *
* You can make a RGBA triple by using MakeRGBA. * You can make a RGBA triple by using MakeRGBA.
* *
@@ -899,7 +888,7 @@ typedef DWORD32 RGBCOLOR;
/** /**
* \def MakeRGBA(r, g, b, a) * \def MakeRGBA(r, g, b, a)
* \brief Makes a RGBA quadruple value from red \a r, green \a g, * \brief Makes a RGBA triple value from red \a r, green \a g,
* blue \a b and alpha \a components. * blue \a b and alpha \a components.
* *
* \note The red, green, blue, and alpha components are all ranged * \note The red, green, blue, and alpha components are all ranged
@@ -907,10 +896,10 @@ typedef DWORD32 RGBCOLOR;
* *
* \sa GetRValue, GetGValue, GetBValue, GetAValue * \sa GetRValue, GetGValue, GetBValue, GetAValue
*/ */
#define MakeRGBA(r, g, b, a) \ #define MakeRGBA(r, g, b, a) \
(((DWORD32)((BYTE)(r))) \ (((DWORD32)((BYTE)(r))) \
| ((DWORD32)((BYTE)(g)) << 8) \ | ((DWORD32)((BYTE)(g)) << 8) \
| ((DWORD32)((BYTE)(b)) << 16) \ | ((DWORD32)((BYTE)(b)) << 16) \
| ((DWORD32)((BYTE)(a)) << 24)) | ((DWORD32)((BYTE)(a)) << 24))
/** /**
@@ -1025,7 +1014,7 @@ typedef struct _RGB
*/ */
BYTE b; BYTE b;
/** /**
* Reserved for alignment; or the alpha component of a RGBA quadruple. * Reserved for alignment, maybe used for the alpha component of a RGB triple.
*/ */
BYTE a; BYTE a;
} RGB; } RGB;
@@ -1401,7 +1390,7 @@ typedef struct _GAL_Rect {
#define SCANCODE_MUTE 113 #define SCANCODE_MUTE 113
#define SCANCODE_VOLUMEDOWN 114 #define SCANCODE_VOLUMEDOWN 114
#define SCANCODE_VOLUMEUP 115 #define SCANCODE_VOLUMEUP 115
#define SCANCODE_POWER 116 /* SC System Power Down */ #define SCANCODE_POWER 116 /* SC System Power Down */
#define SCANCODE_KPEQUAL 117 #define SCANCODE_KPEQUAL 117
#define SCANCODE_KPPLUSMINUS 118 #define SCANCODE_KPPLUSMINUS 118
#define SCANCODE_BREAK 119 #define SCANCODE_BREAK 119
@@ -1689,9 +1678,8 @@ typedef struct _GAL_Rect {
/** /**
* \def KS_CTRL * \def KS_CTRL
* \brief This status indicate that either the left-Ctrl key or the * \brief This status indicate that either the left-Ctrl key or the right-Ctrl key
* right-Ctrl key was pressed when the key or mouse message posted * was pressed when the key or mouse message posted to the window.
* to the window.
* *
* \sa key_msgs * \sa key_msgs
*/ */
@@ -1744,9 +1732,8 @@ typedef struct _GAL_Rect {
/** /**
* \def KS_SHIFT * \def KS_SHIFT
* \brief This status indicate that either the left-Shift key or * \brief This status indicate that either the left-Shift key or the right-Shift key
* the right-Shift key was pressed when the key or mouse message * was pressed when the key or mouse message posted to the window.
* posted to the window.
* *
* \sa key_msgs * \sa key_msgs
*/ */
@@ -1803,51 +1790,45 @@ typedef struct _GAL_Rect {
*/ */
#define ERR_OK 0 #define ERR_OK 0
/**
* \def ERR_INV_HWND
* \brief Return value invalid window handle error.
*/
#define ERR_INV_HWND -1
/** /**
* \def ERR_QUEUE_FULL * \def ERR_QUEUE_FULL
* \brief Return value queue is full error. * \brief Return value queue is full error.
*/ */
#define ERR_QUEUE_FULL -1 #define ERR_QUEUE_FULL -2
/** /**
* \def ERR_INVALID_HANDLE * \def ERR_INVALID_HANDLE
* \brief Return value invalid handle error. * \brief Return value invalid handle error.
*/ */
#define ERR_INVALID_HANDLE -2 #define ERR_INVALID_HANDLE -3
/**
* \def ERR_INV_HWND
* \brief Return value invalid window handle error.
*/
#define ERR_INV_HWND ERR_INVALID_HANDLE
/** /**
* \def ERR_INVALID_HMENU * \def ERR_INVALID_HMENU
* \brief Invalid menu handle. * \brief Return value invalid menu handle error.
*/ */
#define ERR_INVALID_HMENU ERR_INVALID_HANDLE #define ERR_INVALID_HMENU -4
/**
* \def ERR_MSG_CANCELED
* \brief The message handling was canceled.
*/
#define ERR_MSG_CANCELED -3
/** /**
* \def ERR_INVALID_POS * \def ERR_INVALID_POS
* \brief Invalid postion. * \brief Return value invalid postion error.
*/ */
#define ERR_INVALID_POS -5 #define ERR_INVALID_POS -5
/** /**
* \def ERR_INVALID_ID * \def ERR_INVALID_ID
* \brief Invalid identifier. * \brief Return value invalid id error.
*/ */
#define ERR_INVALID_ID -6 #define ERR_INVALID_ID -6
/** /**
* \def ERR_RES_ALLOCATION * \def ERR_RES_ALLOCATION
* \brief Failed to allocate memory. * \brief Return value allocation resource error .
*/ */
#define ERR_RES_ALLOCATION -7 #define ERR_RES_ALLOCATION -7
@@ -2046,20 +2027,19 @@ extern "C" {
#include "os_type.h" #include "os_type.h"
#include "os_file_api.h" #include "os_file_api.h"
#define fopen tp_fopen #define fopen tp_fopen
#define fclose tp_fclose #define fclose tp_fclose
#define fwrite tp_fwrite #define fwrite tp_fwrite
#define fread tp_fread #define fread tp_fread
#define fseek tp_fseek #define fseek tp_fseek
#define feof tp_feof #define feof tp_feof
#undef assert #undef assert
#define _HAVE_ASSERT 1 #define _HAVE_ASSERT 1
#define assert(e) \ #define assert(e) do { \
do { \ e; \
e; \ } while (0)
} while (0)
#undef stdin #undef stdin
#undef stdout #undef stdout
@@ -2097,24 +2077,21 @@ MG_EXPORT int strncasecmp(const char *s1, const char *s2, unsigned int n);
#ifdef _MGUSE_OWN_MALLOC #ifdef _MGUSE_OWN_MALLOC
/** /**
* \fn int init_minigui_malloc (unsigned char* heap, unsigned int heap_size, * \fn int init_minigui_malloc (unsigned char* heap, unsigned int heap_size, \
int (*lock_heap) (void), int (*unlock_heap) (void)) int (*lock_heap) (void), int (*unlock_heap) (void))
* \brief Initialize MiniGUI's own heap system. * \brief Initialize MiniGUI's own heap system.
* *
* MiniGUI implements a heap system which is compatbile with ANIS C. When the * MiniGUI implements a heap system which is compatbile with ANIS C. When you
* RTOS does not provide a re-entriable malloc implementation, you can use * RTOS does not provide a re-entriable malloc implementation, you can use MiniGUI's
* MiniGUI's heap system. * heap system.
* *
* Before using MiniGUI's own heap system, you should provide a memory range * Before using MiniGUI's own heap system, you should provide a memory range to be
* to be the heap, and provided two functions to lock the heap and unlock * the heap, and provided two functions to lock the heap and unlock the heap.
* the heap.
* *
* \param heap The pointer to the heap bottom. * \param heap The pointer to the heap bottom.
* \param heap_size The size of the heap in bytes. * \param heap_size The size of the heap in bytes.
* \param lock_heap A function will be called by MiniGUI's own heap system * \param lock_heap A function will be called by MiniGUI's own heap system to lock the heap.
* to lock the heap. * \param lock_heap A function will be called by MiniGUI's own heap system to unlock the heap.
* \param lock_heap A function will be called by MiniGUI's own heap system
* to unlock the heap.
* *
* \return Zero on success, non-zero on error. * \return Zero on success, non-zero on error.
*/ */
@@ -2338,7 +2315,7 @@ int init_minigui_printf (int (*output_char) (int ch),
#define _WRN_PRINTF(fmt, ...) \ #define _WRN_PRINTF(fmt, ...) \
do { \ do { \
TCS_BROWN (stderr); \ TCS_BROWN (stderr); \
fprintf (stderr, "%s: ", __FUNCTION__); \ fprintf (stderr, "%s: ", __FUNCTION__); \
fprintf (stderr, fmt, ##__VA_ARGS__); \ fprintf (stderr, fmt, ##__VA_ARGS__); \
TCS_NONE (stderr); \ TCS_NONE (stderr); \
@@ -2371,9 +2348,8 @@ int init_minigui_printf (int (*output_char) (int ch),
#define MAIN_PTH_DEF_STACK_SIZE (1024*4) #define MAIN_PTH_DEF_STACK_SIZE (1024*4)
/** /**
* \fn int start_minigui_pthread (int (* pth_entry) (int argc, * \fn int start_minigui_pthread (int (* pth_entry) (int argc, const char* argv []), \
const char* argv []), int argc, const char* argv[], \
int argc, const char* argv[],
char* stack_base, unsigned int stack_size) char* stack_base, unsigned int stack_size)
* \brief Initialize MiniGUI's own POSIX Threads system and start the main thread. * \brief Initialize MiniGUI's own POSIX Threads system and start the main thread.
* *
+5 -5
View File
@@ -23,7 +23,7 @@
and Graphics User Interface (GUI) support system for embedded systems and Graphics User Interface (GUI) support system for embedded systems
and smart IoT devices. and smart IoT devices.
Copyright (C) 2002~2020, Beijing FMSoft Technologies Co., Ltd. Copyright (C) 2002~2018, Beijing FMSoft Technologies Co., Ltd.
Copyright (C) 1998~2002, WEI Yongming Copyright (C) 1998~2002, WEI Yongming
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
@@ -65,6 +65,10 @@
#ifndef _MGUI_CONTROL_H #ifndef _MGUI_CONTROL_H
#define _MGUI_CONTROL_H #define _MGUI_CONTROL_H
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "ctrl/ctrlhelper.h" #include "ctrl/ctrlhelper.h"
/** /**
@@ -162,10 +166,6 @@
#include "ctrl/animation.h" #include "ctrl/animation.h"
#endif /* _MGCTRL_ANIMATION */ #endif /* _MGCTRL_ANIMATION */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif /* __cplusplus */ #endif /* __cplusplus */
+3 -2
View File
@@ -62,6 +62,7 @@
#ifndef EXT_ANIMATION_H #ifndef EXT_ANIMATION_H
#define EXT_ANIMATION_H #define EXT_ANIMATION_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
@@ -264,7 +265,7 @@ MG_EXPORT void DestroyAnimation (ANIMATION* anim, BOOL free_it);
/** /**
* \def ANM_SETANIMATION * \def ANM_SETANIMATION
* \brief Set the animation object for the control. * \brief Sets the animation object for the control.
* *
* An application can send ANM_SETANIMATION to set the animation object of a control. * An application can send ANM_SETANIMATION to set the animation object of a control.
* *
@@ -282,7 +283,7 @@ MG_EXPORT void DestroyAnimation (ANIMATION* anim, BOOL free_it);
/** /**
* \def ANM_GETANIMATION * \def ANM_GETANIMATION
* \brief Get the animation object of the control. * \brief Gets the animation object of the control.
* *
* An application can send ANM_GETANIMATION to retrive the animation object of a control. * An application can send ANM_GETANIMATION to retrive the animation object of a control.
* *
+5 -5
View File
@@ -420,7 +420,7 @@ extern "C" {
/** /**
* \def BM_GETCHECK * \def BM_GETCHECK
* \brief Retrieve the check state of a radio button or check box. * \brief Retrieves the check state of a radio button or check box.
* *
* An application sends a BM_GETCHECK message to retrieve * An application sends a BM_GETCHECK message to retrieve
* the check state of a radio button or check box. * the check state of a radio button or check box.
@@ -443,7 +443,7 @@ extern "C" {
/** /**
* \def BM_SETCHECK * \def BM_SETCHECK
* \brief Set the check state of a radio button or check box. * \brief Sets the check state of a radio button or check box.
* *
* An application sends a BM_SETCHECK message to set * An application sends a BM_SETCHECK message to set
* the check state of a radio button or check box. * the check state of a radio button or check box.
@@ -469,7 +469,7 @@ extern "C" {
/** /**
* \def BM_GETSTATE * \def BM_GETSTATE
* \brief Get the state of a button or check box. * \brief Gets the state of a button or check box.
* *
* An application sends a BM_GETSTATE message to * An application sends a BM_GETSTATE message to
* determine the state of a button or check box. * determine the state of a button or check box.
@@ -488,7 +488,7 @@ extern "C" {
/** /**
* \def BM_SETSTATE * \def BM_SETSTATE
* \brief Set the state of a button. * \brief Sets the state of a button.
* *
* An application sends a BM_SETSTATE message to set the state of a * An application sends a BM_SETSTATE message to set the state of a
* button. * button.
@@ -569,7 +569,7 @@ extern "C" {
/** /**
* \def BM_GETIMAGE * \def BM_GETIMAGE
* \brief Retrieve the handle to the image. * \brief Retrieves the handle to the image.
* *
* An application sends a BM_GETIMAGE message to * An application sends a BM_GETIMAGE message to
* retrieve a handle to the image (icon or bitmap) associated with the button. * retrieve a handle to the image (icon or bitmap) associated with the button.
+16 -16
View File
@@ -238,7 +238,7 @@ extern "C" {
/** /**
* \def CB_GETEDITSEL * \def CB_GETEDITSEL
* \brief Get the starting and ending character positions of the current * \brief Gets the starting and ending character positions of the current
* selection. * selection.
* *
* An application sends a CB_GETEDITSEL message to get the starting and ending * An application sends a CB_GETEDITSEL message to get the starting and ending
@@ -285,7 +285,7 @@ extern "C" {
/** /**
* \def CB_SETEDITSEL * \def CB_SETEDITSEL
* \brief Set the starting and ending character positions of the current * \brief Sets the starting and ending character positions of the current
* selection. * selection.
* *
* An application sends a CB_SETEDITSEL message to set the starting and ending * An application sends a CB_SETEDITSEL message to set the starting and ending
@@ -419,7 +419,7 @@ extern "C" {
/** /**
* \def CB_GETLBTEXTLEN * \def CB_GETLBTEXTLEN
* \brief Get the string length of an item in the list box. * \brief Gets the string length of an item in the list box.
* *
* An application sends a CB_GETLBTEXTLEN message to get the string length * An application sends a CB_GETLBTEXTLEN message to get the string length
* of a specified item in the list box of a combo box. * of a specified item in the list box of a combo box.
@@ -556,7 +556,7 @@ extern "C" {
/** /**
* \def CB_SETITEMADDDATA * \def CB_SETITEMADDDATA
* \brief Set a 32-bit data value with the specified item. * \brief Sets a 32-bit data value with the specified item.
* *
* An application sends an CB_SETITEMADDDATA message to associate a 32-bit data * An application sends an CB_SETITEMADDDATA message to associate a 32-bit data
* value specified in the lParam parameter with an item in the list box that * value specified in the lParam parameter with an item in the list box that
@@ -598,7 +598,7 @@ extern "C" {
/** /**
* \def CB_SETITEMHEIGHT * \def CB_SETITEMHEIGHT
* \brief Set the height of all items of the list box in a combo box. * \brief Sets the height of all items of the list box in a combo box.
* *
* An application sends an CB_SETITEMHEIGHT message to set the height of * An application sends an CB_SETITEMHEIGHT message to set the height of
* all items of the list box in a combo box. * all items of the list box in a combo box.
@@ -619,7 +619,7 @@ extern "C" {
/** /**
* \def CB_GETITEMHEIGHT * \def CB_GETITEMHEIGHT
* \brief Get the height of items of the list box in a combo box. * \brief Gets the height of items of the list box in a combo box.
* *
* \code * \code
* CB_GETITEMHEIGHT * CB_GETITEMHEIGHT
@@ -637,7 +637,7 @@ extern "C" {
/** /**
* \def CB_GETDROPPEDSTATE * \def CB_GETDROPPEDSTATE
* \brief Determine whether the list box of a combo box is dropped down. * \brief Determines whether the list box of a combo box is dropped down.
* *
* \code * \code
* CB_GETIDROPSTATE * CB_GETIDROPSTATE
@@ -686,7 +686,7 @@ extern "C" {
/** /**
* \def CB_SETSPINFORMAT * \def CB_SETSPINFORMAT
* \brief Set the format string of value for CBS_AUTOSPIN type. * \brief Sets the format string of value for CBS_AUTOSPIN type.
* *
* \code * \code
* CB_SETSPINFORMAT * CB_SETSPINFORMAT
@@ -705,7 +705,7 @@ extern "C" {
/** /**
* \def CB_SETSPINRANGE * \def CB_SETSPINRANGE
* \brief Determine the range of the spin box in a combo box. * \brief Determines the range of the spin box in a combo box.
* *
* \code * \code
* CB_SETSPINRANGE * CB_SETSPINRANGE
@@ -725,7 +725,7 @@ extern "C" {
/** /**
* \def CB_GETSPINRANGE * \def CB_GETSPINRANGE
* \brief Get the range of the spin box in a combo box. * \brief Gets the range of the spin box in a combo box.
* *
* \code * \code
* CB_GETSPINRANGE * CB_GETSPINRANGE
@@ -745,7 +745,7 @@ extern "C" {
/** /**
* \def CB_SETSPINVALUE * \def CB_SETSPINVALUE
* \brief Determine the value of the spin box in a combo box. * \brief Determines the value of the spin box in a combo box.
* *
* \code * \code
* CB_SETSPINVALUE * CB_SETSPINVALUE
@@ -763,7 +763,7 @@ extern "C" {
/** /**
* \def CB_GETSPINVALUE * \def CB_GETSPINVALUE
* \brief Get the current value of the spin box in a combo box. * \brief Gets the current value of the spin box in a combo box.
* *
* \code * \code
* CB_GETSPINVALUE * CB_GETSPINVALUE
@@ -778,7 +778,7 @@ extern "C" {
/** /**
* \def CB_SETSPINPACE * \def CB_SETSPINPACE
* \brief Determine the pace and the fast pace of the spin box in a combo box. * \brief Determines the pace and the fast pace of the spin box in a combo box.
* *
* \code * \code
* CB_SETSPINPACE * CB_SETSPINPACE
@@ -798,7 +798,7 @@ extern "C" {
/** /**
* \def CB_GETSPINPACE * \def CB_GETSPINPACE
* \brief Get the pace and the fast pace of the spin box in a combo box. * \brief Gets the pace and the fast pace of the spin box in a combo box.
* *
* \code * \code
* CB_GETSPINPACE * CB_GETSPINPACE
@@ -856,7 +856,7 @@ extern "C" {
/** /**
* \def CB_SETSTRCMPFUNC * \def CB_SETSTRCMPFUNC
* \brief Set the STRCMP function used to sort items. * \brief Sets the STRCMP function used to sort items.
* *
* An application sends a CB_SETSTRCMPFUNC message to set a * An application sends a CB_SETSTRCMPFUNC message to set a
* new STRCMP function to sort items in the combo-box. * new STRCMP function to sort items in the combo-box.
@@ -889,7 +889,7 @@ extern "C" {
/** /**
* \def CB_GETCHILDREN * \def CB_GETCHILDREN
* \brief Get the handles to the children of a ComboBox control. * \brief Gets the handles to the children of a ComboBox control.
* *
* An application sends a CB_GETCHILDREN message to get the handles * An application sends a CB_GETCHILDREN message to get the handles
* to the children of a ComboBox control. * to the children of a ComboBox control.
+1 -1
View File
@@ -213,7 +213,7 @@ typedef COOLBARITEMINFO *PCOOLBARITEMINFO;
/** /**
* \def CBM_ENABLE * \def CBM_ENABLE
* \brief Set an item to be enabled or disabled. * \brief Sets an item to be enabled or disabled.
* *
* \code * \code
* CBM_ENABLE * CBM_ENABLE
+19 -24
View File
@@ -114,7 +114,7 @@ typedef enum
* This function outputs a grayed text at the specified position. * This function outputs a grayed text at the specified position.
* *
* \param hdc The device context. * \param hdc The device context.
* \param hwnd Tell the function to draw with the color definitions of the window. * \param hwnd Tell the function to draw with the color definitions of this window.
* \param x The x-coordinate of start point. * \param x The x-coordinate of start point.
* \param y The y-coordinate of start point. * \param y The y-coordinate of start point.
* \param szText The null-terminated text to be output. * \param szText The null-terminated text to be output.
@@ -172,9 +172,9 @@ MG_EXPORT void ResetToolTipWin (HWND hwnd, int x, int y,
/** /**
* \fn void DestroyToolTipWin (HWND hwnd) * \fn void DestroyToolTipWin (HWND hwnd)
* \brief Destroy a tool tip window. * \brief Destroies a tool tip window.
* *
* This function destroys the specified tool tip window \a hwnd, which * This function destroies the specified tool tip window \a hwnd, which
* is returned by \a CreateToolTipWin. * is returned by \a CreateToolTipWin.
* *
* \param hwnd The handle to the tool tip window. * \param hwnd The handle to the tool tip window.
@@ -184,29 +184,24 @@ MG_EXPORT void ResetToolTipWin (HWND hwnd, int x, int y,
MG_EXPORT void DestroyToolTipWin (HWND hwnd); MG_EXPORT void DestroyToolTipWin (HWND hwnd);
/** /**
* \fn void GUIAPI NotifyParentEx (HWND hwnd, LINT id, int code, * \fn void GUIAPI NotifyParentEx (HWND hwnd, LINT id, int code, DWORD add_data)
* DWORD add_data) * \brief Sends a notification message to the parent.
* \brief Send a notification message to the parent.
* *
* This function send a notification message to the parent. * By default, the notification from a control will be sent to its parent
* window within a MSG_COMMAND messsage.
* *
* In the early version, the notification from a control will be sent to * Since version 1.2.6, MiniGUI defines the Nofication Callback Procedure
* its parent window within a MSG_COMMAND message. * for control. You can specify a callback function for a control by calling
*
* Since version 1.2.6, MiniGUI defines the Notification Callback Procedure
* for a window. You can specify a callback function to a window by calling
* \a SetNotificationCallback to receive and handle the notification from * \a SetNotificationCallback to receive and handle the notification from
* its children in the procedure. * the control.
* *
* Note that if the control has \a WS_EX_NOPARENTNOTIFY style, this function * If you have defined the Notificaton Callback Procedure for the control,
* calling NotifyParentEx will call the notification callback procedure,
* not send the notification message to the parent.
*
* Note that if the control has WS_EX_NOPARENTNOTIFY style, this function
* will not notify the parent. * will not notify the parent.
* *
* Note taht there was a mistake in the implementation. This function will
* check and call the notification callback procedure of the control itself
* instead of its parent.
*
* Since 5.0.0, you can call NotifyWindow to notify any kind of window.
*
* \param hwnd The handle to current control window. * \param hwnd The handle to current control window.
* \param id The identifier of current control. * \param id The identifier of current control.
* \param code The notification code. * \param code The notification code.
@@ -214,10 +209,9 @@ MG_EXPORT void DestroyToolTipWin (HWND hwnd);
* *
* \note The type of \a id change from int to LINT since v3.2. * \note The type of \a id change from int to LINT since v3.2.
* *
* \sa NotifyWindow, SetNotificationCallback * \sa SetNotificationCallback
*/ */
MG_EXPORT void GUIAPI NotifyParentEx (HWND hwnd, LINT id, int code, MG_EXPORT void GUIAPI NotifyParentEx (HWND hwnd, LINT id, int code, DWORD add_data);
DWORD add_data);
/** /**
* \def NotifyParent(hwnd, id, code) * \def NotifyParent(hwnd, id, code)
@@ -228,7 +222,7 @@ MG_EXPORT void GUIAPI NotifyParentEx (HWND hwnd, LINT id, int code,
* \param id The identifier of current control. * \param id The identifier of current control.
* \param code The notification code. * \param code The notification code.
* *
* \note This function is actually a macro of \a NotifyParentEx with * \note This function is actually a macro of NotifyParentEx with
* \a dwAddData being zero. * \a dwAddData being zero.
* *
* \sa NotifiyParentEx * \sa NotifiyParentEx
@@ -237,6 +231,7 @@ MG_EXPORT void GUIAPI NotifyParentEx (HWND hwnd, LINT id, int code,
NotifyParentEx(hwnd, id, code, 0) NotifyParentEx(hwnd, id, code, 0)
/** /**
* \var typedef int (*STRCMP) (const char* s1, const char* s2, size_t n)
* \brief Type of general strncmp function. * \brief Type of general strncmp function.
* *
* The function compares the two strings \a s1 and \a s2. It returns * The function compares the two strings \a s1 and \a s2. It returns
+28 -27
View File
@@ -233,7 +233,7 @@ extern "C" {
/** /**
* \def EM_GETSEL * \def EM_GETSEL
* \brief Get the selected string in the edit control. * \brief Gets the selected string in the edit control.
* *
* \code * \code
* EM_GETSEL * EM_GETSEL
@@ -254,7 +254,7 @@ extern "C" {
/** /**
* \def EM_SETSEL * \def EM_SETSEL
* \brief Set the selected point in the edit control and makes * \brief Sets the selected point in the edit control and makes
* the text between insertion point and selection point selected. * the text between insertion point and selection point selected.
* *
* Generally, you should send EM_SETCARETPOS first to set insertion * Generally, you should send EM_SETCARETPOS first to set insertion
@@ -308,7 +308,7 @@ extern "C" {
/** /**
* \def EM_GETSELPOS * \def EM_GETSELPOS
* \brief Get the position of the selection point. * \brief Gets the position of the selection point.
* *
* \code * \code
* EM_GETSELPOS * EM_GETSELPOS
@@ -380,7 +380,7 @@ extern "C" {
/** /**
* \def EM_SETLFDISPCHAR * \def EM_SETLFDISPCHAR
* \brief Set the char used to represent the line seperator. * \brief Sets the char used to represent the line seperator.
* *
* In default case, the line sperator will not be shown. * In default case, the line sperator will not be shown.
* If the char used to represent the line seperator is not zero, * If the char used to represent the line seperator is not zero,
@@ -400,7 +400,7 @@ extern "C" {
/** /**
* \def EM_SETLINESEP * \def EM_SETLINESEP
* \brief Set the line seperator. * \brief Sets the line seperator.
* *
* In default case, the line sperator is Line Feed * In default case, the line sperator is Line Feed
* characters(LF , ASCII 10, '\n'). * characters(LF , ASCII 10, '\n').
@@ -424,7 +424,7 @@ extern "C" {
/** /**
* \def EM_GETCARETPOS * \def EM_GETCARETPOS
* \brief Get the position of the caret. * \brief Gets the position of the caret.
* *
* \code * \code
* EM_GETCARETPOS * EM_GETCARETPOS
@@ -448,7 +448,7 @@ extern "C" {
/** /**
* \def EM_SETCARETPOS * \def EM_SETCARETPOS
* \brief Set the position of the caret. * \brief Sets the position of the caret.
* *
* \code * \code
* EM_SETCARETPOS * EM_SETCARETPOS
@@ -482,7 +482,7 @@ extern "C" {
/** /**
* \def EM_GETLINECOUNT * \def EM_GETLINECOUNT
* \brief Get the line number. * \brief Gets the line number.
* *
* \code * \code
* EM_GETLINECOUNT * EM_GETLINECOUNT
@@ -498,7 +498,7 @@ extern "C" {
/** /**
* \def EM_GETLINEHEIGHT * \def EM_GETLINEHEIGHT
* \brief Get the height of a line. * \brief Gets the height of a line.
* *
* \code * \code
* EM_GETLINEHEIGHT * EM_GETLINEHEIGHT
@@ -514,7 +514,7 @@ extern "C" {
/** /**
* \def EM_SETLINEHEIGHT * \def EM_SETLINEHEIGHT
* \brief Set the height of a line. * \brief Sets the height of a line.
* *
* \code * \code
* EM_SETLINEHEIGHT * EM_SETLINEHEIGHT
@@ -679,7 +679,7 @@ extern "C" {
/** /**
* \def EM_SETREADONLY * \def EM_SETREADONLY
* \brief Set or removes the read-only style (ES_READONLY) in an edit control. * \brief Sets or removes the read-only style (ES_READONLY) in an edit control.
* *
* \code * \code
* EM_SETREADONLY * EM_SETREADONLY
@@ -698,6 +698,7 @@ extern "C" {
#define EM_SETREADONLY 0xF0CF #define EM_SETREADONLY 0xF0CF
/** /**
* \var typedef int (*ED_DRAWSEL_FUNC) (HWND hWnd, HDC hdc, int startx, int starty, const char* content, int len, int selout)
* \brief Type of the edit control callback function on drawing selected strings. * \brief Type of the edit control callback function on drawing selected strings.
* *
* \param hWnd Handle of the edit control. * \param hWnd Handle of the edit control.
@@ -714,7 +715,7 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
/** /**
* \def EM_SETDRAWSELECTFUNC * \def EM_SETDRAWSELECTFUNC
* \brief Set the callback function on drawing selected chars * \brief Sets the callback function on drawing selected chars
* *
* \code * \code
* EM_SETDRAWSELECTFUNC * EM_SETDRAWSELECTFUNC
@@ -730,7 +731,7 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
/** /**
* \def EM_SETGETCARETWIDTHFUNC * \def EM_SETGETCARETWIDTHFUNC
* \brief Set the callback function on getting caret width * \brief Sets the callback function on getting caret width
* *
* \code * \code
* EM_SETGETCARETWIDTHFUNC * EM_SETGETCARETWIDTHFUNC
@@ -906,7 +907,7 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
/** /**
* \def EM_SETTITLETEXT * \def EM_SETTITLETEXT
* \brief Set the title text displayed before content text. * \brief Sets the title text displayed before content text.
* *
* \code * \code
* EM_SETTITLETEXT * EM_SETTITLETEXT
@@ -923,7 +924,7 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
/** /**
* \def EM_GETTITLETEXT * \def EM_GETTITLETEXT
* \brief Get the title text displayed before content text. * \brief Gets the title text displayed before content text.
* *
* \code * \code
* EM_GETTITLETEXT * EM_GETTITLETEXT
@@ -945,7 +946,7 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
/** /**
* \def EM_SETTIPTEXT * \def EM_SETTIPTEXT
* \brief Set the tip text displayed when content is empty. * \brief Sets the tip text displayed when content is empty.
* *
* \code * \code
* EM_SETTIPTEXT * EM_SETTIPTEXT
@@ -961,7 +962,7 @@ typedef int (*ED_DRAWSEL_FUNC) (HWND, HDC, int, int, const char*, int, int);
/** /**
* \def EM_GETTIPTEXT * \def EM_GETTIPTEXT
* \brief Get the tip text displayed when content is empty. * \brief Gets the tip text displayed when content is empty.
* *
* \code * \code
* EM_GETTIPTEXT * EM_GETTIPTEXT
@@ -1001,14 +1002,14 @@ typedef struct _TEXTPOSINFO {
/** /**
* \def EM_GETNUMOFPARAGRAPHS * \def EM_GETNUMOFPARAGRAPHS
* \brief Get the number of paragraphs in textedit control. * \brief Gets the number of paragraphs in textedit control.
* *
* \return The number of paragraphs. * \return The number of paragraphs.
*/ */
#define EM_GETNUMOFPARAGRAPHS 0xF0E0 #define EM_GETNUMOFPARAGRAPHS 0xF0E0
/** /**
* \def EM_GETPARAGRAPHLENGTH * \def EM_GETPARAGRAPHLENGTH
* \brief Get the specified paragraph length in textedit control. * \brief Gets the specified paragraph length in textedit control.
* *
* \code * \code
* EM_GETPARAGRAPHLENGTH * EM_GETPARAGRAPHLENGTH
@@ -1020,7 +1021,7 @@ typedef struct _TEXTPOSINFO {
#define EM_GETPARAGRAPHLENGTH 0xF0E1 #define EM_GETPARAGRAPHLENGTH 0xF0E1
/** /**
* \def EM_GETPARAGRAPHTEXT * \def EM_GETPARAGRAPHTEXT
* \brief Get the specified paragraph text from textedit control. * \brief Gets the specified paragraph text from textedit control.
* *
* \code * \code
* EM_GETPARAGRAPHTEXT * EM_GETPARAGRAPHTEXT
@@ -1054,7 +1055,7 @@ typedef struct _TEXTPOSINFO {
/** /**
* \def EM_SETCARETPOSBYLINE * \def EM_SETCARETPOSBYLINE
* \brief Set the selected point in the edit control and makes * \brief Sets the selected point in the edit control and makes
* the text between insertion point and selection point selected. * the text between insertion point and selection point selected.
* This is set by really line. That means if you set the TES_AUTOWRAP, * This is set by really line. That means if you set the TES_AUTOWRAP,
* the line number you set, the caret pos line number you see. This is * the line number you set, the caret pos line number you see. This is
@@ -1084,7 +1085,7 @@ typedef struct _TEXTPOSINFO {
/** /**
* \def EM_GETCARETPOSBYLINE * \def EM_GETCARETPOSBYLINE
* \brief Get the position of the caret. * \brief Gets the position of the caret.
* *
* \code * \code
* EM_GETCARETPOSBYLINE * EM_GETCARETPOSBYLINE
@@ -1112,7 +1113,7 @@ typedef struct _TEXTPOSINFO {
/** /**
* \def EM_GETSELPOSBYLINE * \def EM_GETSELPOSBYLINE
* \brief Get the position of the selection point. * \brief Gets the position of the selection point.
* *
* \code * \code
* EM_GETSELPOSBYLINE * EM_GETSELPOSBYLINE
@@ -1133,7 +1134,7 @@ typedef struct _TEXTPOSINFO {
/** /**
* \def EM_GETPARAGRAPHLENGTHINMCHAR * \def EM_GETPARAGRAPHLENGTHINMCHAR
* \brief Get the specified paragraph length in textedit control. * \brief Gets the specified paragraph length in textedit control.
* in text not charactors. * in text not charactors.
* *
* \code * \code
@@ -1147,7 +1148,7 @@ typedef struct _TEXTPOSINFO {
/** /**
* \def EM_GETLINELENGTHINMCHAR * \def EM_GETLINELENGTHINMCHAR
* \brief Get the specified line length in textedit control. * \brief Gets the specified line length in textedit control.
* in charactors not byte. * in charactors not byte.
* *
* \code * \code
@@ -1161,7 +1162,7 @@ typedef struct _TEXTPOSINFO {
/** /**
* \def EM_GETLINELENGTH * \def EM_GETLINELENGTH
* \brief Get the specified line length in textedit control. * \brief Gets the specified line length in textedit control.
* *
* \code * \code
* EM_GETLINELENGTH * EM_GETLINELENGTH
@@ -1174,7 +1175,7 @@ typedef struct _TEXTPOSINFO {
/** /**
* \def EM_GETLINETEXT * \def EM_GETLINETEXT
* \brief Get the specified line text from textedit control. * \brief Gets the specified line text from textedit control.
* *
* \code * \code
* EM_GETLINETEXT * EM_GETLINETEXT
+5 -5
View File
@@ -503,7 +503,7 @@ typedef struct _GRIDCELLDATA
#define GRIDM_DELCOLUMN 0xF219 #define GRIDM_DELCOLUMN 0xF219
/** /**
* \def GRIDM_GETROWCOUNT * \def GRIDM_GETROWCOUNT
* \brief Get the number of all rows in the grid control. * \brief Gets the number of all rows in the grid control.
* *
* An application sends an GRIDM_GETROWCOUNT message to get the number of all rows in the grid control. * An application sends an GRIDM_GETROWCOUNT message to get the number of all rows in the grid control.
* *
@@ -519,7 +519,7 @@ typedef struct _GRIDCELLDATA
#define GRIDM_GETROWCOUNT 0xF21A #define GRIDM_GETROWCOUNT 0xF21A
/** /**
* \def GRIDM_GETCOLCOUNT * \def GRIDM_GETCOLCOUNT
* \brief Get the number of all columns in the grid control. * \brief Gets the number of all columns in the grid control.
* *
* An application sends an GRIDM_GETCOLCOUNT message to get the number of all columns in the grid control. * An application sends an GRIDM_GETCOLCOUNT message to get the number of all columns in the grid control.
* *
@@ -535,7 +535,7 @@ typedef struct _GRIDCELLDATA
#define GRIDM_GETCOLCOUNT 0xF21B #define GRIDM_GETCOLCOUNT 0xF21B
/** /**
* \def GRIDM_SETNUMFORMAT * \def GRIDM_SETNUMFORMAT
* \brief Set the number format of a cell in the grid control. the format is * \brief Sets the number format of a cell in the grid control. the format is
* just same as format in c printf. * just same as format in c printf.
* *
* An application sends an GRIDM_SETNUMFORMAT message to * An application sends an GRIDM_SETNUMFORMAT message to
@@ -557,7 +557,7 @@ typedef struct _GRIDCELLDATA
/** /**
* \def GRIDM_SETSELECTED * \def GRIDM_SETSELECTED
* \brief Set the selected cell(s) in the grid control. * \brief Sets the selected cell(s) in the grid control.
* *
* An application sends an GRIDM_SETSELECTED message to * An application sends an GRIDM_SETSELECTED message to
* set the selected cell(s) in the grid control. * set the selected cell(s) in the grid control.
@@ -577,7 +577,7 @@ typedef struct _GRIDCELLDATA
/** /**
* \def GRIDM_GETSELECTED * \def GRIDM_GETSELECTED
* \brief Get the selected cell(s) in the grid control. * \brief Gets the selected cell(s) in the grid control.
* *
* An application sends an GRIDM_GETSELECTED message to * An application sends an GRIDM_GETSELECTED message to
* get the selected cell(s) in the grid control. * get the selected cell(s) in the grid control.
+3 -3
View File
@@ -128,9 +128,9 @@ typedef struct _IVITEMINFO
typedef IVITEMINFO* PIVITEMINFO; typedef IVITEMINFO* PIVITEMINFO;
/** Iconview bitmap flags, reserved */ /** Iconview bitmap flags, reserved */
#define IVFLAG_BITMAP 0x0001 #define IVFLAG_BITMAP 0x0001
/** Iconview icon flags, reserved */ /** Iconview icon flags, reserved */
#define IVFLAG_ICON 0x0002 #define IVFLAG_ICON 0x0002
/** /**
@@ -235,7 +235,7 @@ MG_EXPORT PBITMAP iconview_set_item_bitmap(GHANDLE hivi, PBITMAP pbmp);
/** /**
* \def IVM_SETITEMSIZE * \def IVM_SETITEMSIZE
* \brief Set the item width and height of an iconview control * \brief Sets the item width and height of an iconview control
* *
* All the items have the same item size. This message should be sent * All the items have the same item size. This message should be sent
* before you add items to iconview control. * before you add items to iconview control.
+22 -22
View File
@@ -368,7 +368,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_GETSEL * \def LB_GETSEL
* \brief Get the selected state for an specified item. * \brief Gets the selected state for an specified item.
* *
* An application sends an LB_GETSEL message to a list box to get the selected * An application sends an LB_GETSEL message to a list box to get the selected
* state for an item specified in the wParam parameter. * state for an item specified in the wParam parameter.
@@ -419,7 +419,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_GETCURSEL * \def LB_GETCURSEL
* \brief Get the index of the currently selected or highlighted item. * \brief Gets the index of the currently selected or highlighted item.
* *
* An application sends an LB_GETCURSEL message to a list box to get the index of * An application sends an LB_GETCURSEL message to a list box to get the index of
* the currently selected item, if there is one, in a single-selection list box. * the currently selected item, if there is one, in a single-selection list box.
@@ -462,7 +462,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_GETTEXT * \def LB_GETTEXT
* \brief Retrieve the text of an item in list box. * \brief Retrieves the text of an item in list box.
* *
* An application sends an LB_GETTEXT message to a list box to retrieve the text * An application sends an LB_GETTEXT message to a list box to retrieve the text
* of an item. * of an item.
@@ -490,7 +490,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_GETTEXTLEN * \def LB_GETTEXTLEN
* \brief Get the length of text of item specified in a list box. * \brief Gets the length of text of item specified in a list box.
* *
* An application sends an LB_GETTEXTLEN message to a list box to get the length * An application sends an LB_GETTEXTLEN message to a list box to get the length
* of text of the item specified in the \a wParam parameter. * of text of the item specified in the \a wParam parameter.
@@ -511,7 +511,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_GETCOUNT * \def LB_GETCOUNT
* \brief Get the number of items in the list box. * \brief Gets the number of items in the list box.
* *
* An application sends an LB_GETCOUNT message to a list box to get the number * An application sends an LB_GETCOUNT message to a list box to get the number
* of items in the list box. * of items in the list box.
@@ -541,7 +541,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_GETTOPINDEX * \def LB_GETTOPINDEX
* \brief Get the index to the first visible item in the list box. * \brief Gets the index to the first visible item in the list box.
* *
* An application sends an LB_GETTOPINDEX message to get the index to the first * An application sends an LB_GETTOPINDEX message to get the index to the first
* visible item in the list box. Initially, the first visible item is item 0, but * visible item in the list box. Initially, the first visible item is item 0, but
@@ -586,7 +586,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_GETSELCOUNT * \def LB_GETSELCOUNT
* \brief Get the number of selected items in a multiple-selection list box. * \brief Gets the number of selected items in a multiple-selection list box.
* *
* An application sends an LB_GETSELCOUNT message to a list box to get the number * An application sends an LB_GETSELCOUNT message to a list box to get the number
* of selected items in a multiple-selection list box. * of selected items in a multiple-selection list box.
@@ -604,7 +604,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_GETSELITEMS * \def LB_GETSELITEMS
* \brief Get the numbers of selected items. * \brief Gets the numbers of selected items.
* *
* An application sends an LB_GETSELITEMS message to a list box to fill a buffer * An application sends an LB_GETSELITEMS message to a list box to fill a buffer
* with an array of integers that specify the item numbers of selected items in * with an array of integers that specify the item numbers of selected items in
@@ -681,7 +681,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_GETITEMRECT * \def LB_GETITEMRECT
* \brief Retrieve the dimensions of the rectangle. * \brief Retrieves the dimensions of the rectangle.
* *
* An application sends an LB_GETITEMRECT message to a list box to retrieve * An application sends an LB_GETITEMRECT message to a list box to retrieve
* the dimensions of the rectangle that bounds an item as it is currently * the dimensions of the rectangle that bounds an item as it is currently
@@ -706,7 +706,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_GETITEMDATA * \def LB_GETITEMDATA
* \brief Get item data in a list box if the box has LBS_CHECKBOX * \brief Gets item data in a list box if the box has LBS_CHECKBOX
* and/or LBS_USEICON styles. * and/or LBS_USEICON styles.
* *
* An application sends LB_GETITEMDATA message to a list box to retrive the * An application sends LB_GETITEMDATA message to a list box to retrive the
@@ -735,7 +735,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_SETITEMDATA * \def LB_SETITEMDATA
* \brief Set item data in a list box if the box has LBS_CHECKBOX * \brief Sets item data in a list box if the box has LBS_CHECKBOX
* and/or LBS_USEICON styles. * and/or LBS_USEICON styles.
* *
* An application sends LB_SETITEMDATA message to a list box to set the * An application sends LB_SETITEMDATA message to a list box to set the
@@ -768,7 +768,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_SETCARETINDEX * \def LB_SETCARETINDEX
* \brief Set the focus rectangle to the item at the specified index. * \brief Sets the focus rectangle to the item at the specified index.
* *
* An application sends an LB_SETCARETINDEX message to set the focus rectangle * An application sends an LB_SETCARETINDEX message to set the focus rectangle
* to the item at the specified index in a multiple-selection list box. * to the item at the specified index in a multiple-selection list box.
@@ -785,7 +785,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_GETCARETINDEX * \def LB_GETCARETINDEX
* \brief Determine the index of the item that has the focus rectangle. * \brief Determines the index of the item that has the focus rectangle.
* *
* An application sends an LB_GETCARETINDEX message to a list box to determine * An application sends an LB_GETCARETINDEX message to a list box to determine
* the index of the item that has the focus rectangle in a multiple-selection * the index of the item that has the focus rectangle in a multiple-selection
@@ -804,7 +804,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_SETITEMHEIGHT * \def LB_SETITEMHEIGHT
* \brief Set the height of all items. * \brief Sets the height of all items.
* *
* An application sends an LB_SETITEMHEIGHT message to set the height of * An application sends an LB_SETITEMHEIGHT message to set the height of
* all items in a list box. * all items in a list box.
@@ -825,7 +825,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_GETITEMHEIGHT * \def LB_GETITEMHEIGHT
* \brief Get the height in pixels of an item specified in the wParam parameter. * \brief Gets the height in pixels of an item specified in the wParam parameter.
* *
* An application sends an LB_GETITEMHEIGHT message to a list box to get the * An application sends an LB_GETITEMHEIGHT message to a list box to get the
* height in pixels of an item specified in the wParam parameter. * height in pixels of an item specified in the wParam parameter.
@@ -892,7 +892,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_SETTEXT * \def LB_SETTEXT
* \brief Set text of the specified item. * \brief Sets text of the specified item.
* *
* \code * \code
* LB_SETTEXT * LB_SETTEXT
@@ -914,7 +914,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_GETCHECKMARK * \def LB_GETCHECKMARK
* \brief Get check mark status of an item. * \brief Gets check mark status of an item.
* *
* \code * \code
* LB_GETCHECKMARK * LB_GETCHECKMARK
@@ -937,7 +937,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_SETCHECKMARK * \def LB_SETCHECKMARK
* \brief Set check mark status of an item. * \brief Sets check mark status of an item.
* *
* \code * \code
* LB_SETCHECKMARK * LB_SETCHECKMARK
@@ -962,7 +962,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_GETITEMADDDATA * \def LB_GETITEMADDDATA
* \brief Get the 32-bit data value associated with an item. * \brief Gets the 32-bit data value associated with an item.
* *
* An application sends an LB_GETITEMADDDATA message to a list box to get the * An application sends an LB_GETITEMADDDATA message to a list box to get the
* 32-bit data value the list box has stored for the item with index of * 32-bit data value the list box has stored for the item with index of
@@ -1012,7 +1012,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_SETSTRCMPFUNC * \def LB_SETSTRCMPFUNC
* \brief Set the STRCMP function used to sort items. * \brief Sets the STRCMP function used to sort items.
* *
* An application sends an LB_SETSTRCMPFUNC message to set a * An application sends an LB_SETSTRCMPFUNC message to set a
* new STRCMP function to sort items. * new STRCMP function to sort items.
@@ -1043,7 +1043,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_SETITEMDISABLE * \def LB_SETITEMDISABLE
* \brief Set the item disable. * \brief Sets the item disable.
* *
* An application sends an LB_SETITEMDISABLE message to set a * An application sends an LB_SETITEMDISABLE message to set a
* item to disable. * item to disable.
@@ -1079,7 +1079,7 @@ typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
/** /**
* \def LB_SETITEMBOLD * \def LB_SETITEMBOLD
* \brief Set the item display use bold font. * \brief Sets the item display use bold font.
* *
* An application sends an LB_SETITEMBOLD message to set a * An application sends an LB_SETITEMBOLD message to set a
* item display use bold font. * item display use bold font.
+46 -46
View File
@@ -134,9 +134,9 @@ typedef struct _LVITEM
typedef LVITEM *PLVITEM; typedef LVITEM *PLVITEM;
/** Listview bitmap flags */ /** Listview bitmap flags */
#define LVFLAG_BITMAP 0x0001 #define LVFLAG_BITMAP 0x0001
/** Listview icon flags */ /** Listview icon flags */
#define LVFLAG_ICON 0x0002 #define LVFLAG_ICON 0x0002
/** /**
* Struct of the listview subitem info, contains information about a subitem. * Struct of the listview subitem info, contains information about a subitem.
@@ -206,9 +206,9 @@ typedef struct _LVCUSTOMDRAWFUNCS
/** Column flags */ /** Column flags */
/** Column text left align, default */ /** Column text left align, default */
#define LVCF_LEFTALIGN 0x0000 #define LVCF_LEFTALIGN 0x0000
/** Column text right align */ /** Column text right align */
#define LVCF_RIGHTALIGN 0x0001 #define LVCF_RIGHTALIGN 0x0001
/** Column text center align */ /** Column text center align */
#define LVCF_CENTERALIGN 0x0002 #define LVCF_CENTERALIGN 0x0002
/** Column treeview style */ /** Column treeview style */
@@ -216,11 +216,11 @@ typedef struct _LVCUSTOMDRAWFUNCS
/** Header flags */ /** Header flags */
/** Header text left align, default */ /** Header text left align, default */
#define LVHF_LEFTALIGN 0x0000 #define LVHF_LEFTALIGN 0x0000
/** Header text right align */ /** Header text right align */
#define LVHF_RIGHTALIGN 0x0004 #define LVHF_RIGHTALIGN 0x0004
/** Header text center align */ /** Header text center align */
#define LVHF_CENTERALIGN 0x0008 #define LVHF_CENTERALIGN 0x0008
/** /**
* Struct of the listview column info, contains information about a column. * Struct of the listview column info, contains information about a column.
@@ -407,7 +407,7 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
/** /**
* \def LVM_FILLSUBITEM * \def LVM_FILLSUBITEM
* \brief Set the content of a subitem, indentified by rows and columns. * \brief Sets the content of a subitem, indentified by rows and columns.
* *
* \code * \code
* LVM_FILLSUBITEM * LVM_FILLSUBITEM
@@ -526,7 +526,7 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
/** /**
* \def LVM_SETSUBITEMCOLOR * \def LVM_SETSUBITEMCOLOR
* \brief Set the text color of a subitem. * \brief Sets the text color of a subitem.
* *
* \code * \code
* LVM_SETSUBITEMCOLOR * LVM_SETSUBITEMCOLOR
@@ -570,7 +570,7 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
/** /**
* *
* \def LVM_GETSUBITEMTEXT * \def LVM_GETSUBITEMTEXT
* \brief Retrieve the text of a listview subitem. * \brief Retrieves the text of a listview subitem.
* *
* \code * \code
* LVM_GETSUBITEMTEXT * LVM_GETSUBITEMTEXT
@@ -595,7 +595,7 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
/** /**
* \def LVM_GETITEMCOUNT * \def LVM_GETITEMCOUNT
* \brief Get the number of all the items(rows) in a listview. * \brief Gets the number of all the items(rows) in a listview.
* *
* \code * \code
* LVM_GETITEMCOUNT * LVM_GETITEMCOUNT
@@ -610,7 +610,7 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
/** /**
* \def LVM_GETCOLUMNCOUNT * \def LVM_GETCOLUMNCOUNT
* \brief Get the number of all the columns in listview. * \brief Gets the number of all the columns in listview.
* *
* \code * \code
* LVM_GETCOLUMNCOUNT * LVM_GETCOLUMNCOUNT
@@ -625,7 +625,7 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
/** /**
* \def LVM_GETSELECTEDITEM * \def LVM_GETSELECTEDITEM
* \brief Get the current selected item. * \brief Gets the current selected item.
* *
* \code * \code
* LVM_GETSELECTEDITEM * LVM_GETSELECTEDITEM
@@ -688,7 +688,7 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Always returns 0. * \return Always returns 0.
*/ */
#define LVM_SELECTITEM 0xF11F #define LVM_SELECTITEM 0xF11F
/** /**
@@ -709,11 +709,11 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Always returns 0. * \return Always returns 0.
*/ */
#define LVM_SHOWITEM 0xF120 #define LVM_SHOWITEM 0xF120
/** /**
* \def LVM_GETSUBITEMLEN * \def LVM_GETSUBITEMLEN
* \brief Get the text length of the subitem. * \brief Gets the text length of the subitem.
* *
* \code * \code
* LVM_GETSUBITEMLEN * LVM_GETSUBITEMLEN
@@ -733,11 +733,11 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Returns the text length if successful, or LV_ERR otherwise. * \return Returns the text length if successful, or LV_ERR otherwise.
*/ */
#define LVM_GETSUBITEMLEN 0xF121 #define LVM_GETSUBITEMLEN 0xF121
/** /**
* \def LVM_SETCOLUMN * \def LVM_SETCOLUMN
* \brief Set the attributes of a list view column. * \brief Sets the attributes of a list view column.
* *
* \code * \code
* LVM_SETCOLUMN * LVM_SETCOLUMN
@@ -751,11 +751,11 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Returns LV_OKAY if successful, or LV_ERR otherwise. * \return Returns LV_OKAY if successful, or LV_ERR otherwise.
*/ */
#define LVM_SETCOLUMN 0xF122 #define LVM_SETCOLUMN 0xF122
/** /**
* \def LVM_SETSUBITEMTEXT * \def LVM_SETSUBITEMTEXT
* \brief Set the text of a subitem. * \brief Sets the text of a subitem.
* *
* \code * \code
* LVM_SETSUBITEMTEXT * LVM_SETSUBITEMTEXT
@@ -775,11 +775,11 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Returns LV_OKAY if successful, or LV_ERR otherwise. * \return Returns LV_OKAY if successful, or LV_ERR otherwise.
*/ */
#define LVM_SETSUBITEMTEXT 0xF123 #define LVM_SETSUBITEMTEXT 0xF123
/** /**
* \def LVM_SETSUBITEM * \def LVM_SETSUBITEM
* \brief Set the attributes of a subitem. * \brief Sets the attributes of a subitem.
* *
* \code * \code
* LVM_SETSUBITEM * LVM_SETSUBITEM
@@ -799,11 +799,11 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Returns LV_OKAY if successful, or LV_ERR otherwise. * \return Returns LV_OKAY if successful, or LV_ERR otherwise.
*/ */
#define LVM_SETSUBITEM 0xF124 #define LVM_SETSUBITEM 0xF124
/** /**
* \def LVM_GETCOLUMN * \def LVM_GETCOLUMN
* \brief Retrieve the information about a listview column. * \brief Retrieves the information about a listview column.
* *
* \code * \code
* LVM_GETCOLUMN * LVM_GETCOLUMN
@@ -820,11 +820,11 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Returns TRUE if successful, or FALSE otherwise. * \return Returns TRUE if successful, or FALSE otherwise.
*/ */
#define LVM_GETCOLUMN 0xF125 #define LVM_GETCOLUMN 0xF125
/** /**
* \def LVM_GETCOLUMNWIDTH * \def LVM_GETCOLUMNWIDTH
* \brief Retrieve the width of a listview column. * \brief Retrieves the width of a listview column.
* *
* \code * \code
* LVM_GETCOLUMNWIDTH * LVM_GETCOLUMNWIDTH
@@ -838,11 +838,11 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Returns the column width if successful, or -1 otherwise. * \return Returns the column width if successful, or -1 otherwise.
*/ */
#define LVM_GETCOLUMNWIDTH 0xF126 #define LVM_GETCOLUMNWIDTH 0xF126
/** /**
* \def LVM_GETITEM * \def LVM_GETITEM
* \brief Retrieve the item's attributes. * \brief Retrieves the item's attributes.
* *
* \code * \code
* LVM_GETITEM * LVM_GETITEM
@@ -860,11 +860,11 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Returns LV_OKAY if successful, or LV_ERR otherwise. * \return Returns LV_OKAY if successful, or LV_ERR otherwise.
*/ */
#define LVM_GETITEM 0xF127 #define LVM_GETITEM 0xF127
/** /**
* \def LVM_GETITEMSTATE * \def LVM_GETITEMSTATE
* \brief Retrieve the state of a listview item. * \brief Retrieves the state of a listview item.
* *
* \code * \code
* LVM_GETITEMSTATE * LVM_GETITEMSTATE
@@ -881,11 +881,11 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Returns the current state of the specified item. * \return Returns the current state of the specified item.
*/ */
#define LVM_GETITEMSTATE 0xF128 #define LVM_GETITEMSTATE 0xF128
/** /**
* \def LVM_GETSELECTEDCOLUMN * \def LVM_GETSELECTEDCOLUMN
* \brief Retrieve the index of the currently selected column of a listview. * \brief Retrieves the index of the currently selected column of a listview.
* *
* \code * \code
* LVM_GETSELECTEDCOLUMN * LVM_GETSELECTEDCOLUMN
@@ -896,11 +896,11 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Returns the index of the selected column. * \return Returns the index of the selected column.
*/ */
#define LVM_GETSELECTEDCOLUMN 0xF129 #define LVM_GETSELECTEDCOLUMN 0xF129
/** /**
* \def LVM_GETSELECTEDCOUNT * \def LVM_GETSELECTEDCOUNT
* \brief Retrieve the number of the selected items in a listview. * \brief Retrieves the number of the selected items in a listview.
* *
* \code * \code
* LVM_GETSELECTEDCOUNT * LVM_GETSELECTEDCOUNT
@@ -911,11 +911,11 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Returns the number of the selected items. * \return Returns the number of the selected items.
*/ */
#define LVM_GETSELECTEDCOUNT 0xF130 #define LVM_GETSELECTEDCOUNT 0xF130
/** /**
* \def LVM_GETTOPVISIBLE * \def LVM_GETTOPVISIBLE
* \brief Retrieve the index of the topmost visible item in a listview. * \brief Retrieves the index of the topmost visible item in a listview.
* *
* \code * \code
* LVM_GETTOPVISIBLE * LVM_GETTOPVISIBLE
@@ -926,19 +926,19 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Returns the index of the topmost visible item if successful, or zero. * \return Returns the index of the topmost visible item if successful, or zero.
*/ */
#define LVM_GETTOPVISIBLE 0xF131 #define LVM_GETTOPVISIBLE 0xF131
/** /**
* \def LVM_NULL * \def LVM_NULL
* \brief reserved. * \brief reserved.
*/ */
#define LVM_NULL 0xF132 #define LVM_NULL 0xF132
/** /**
* \def LVM_SETITEMSTATE * \def LVM_SETITEMSTATE
* \brief reserved. * \brief reserved.
*/ */
#define LVM_SETITEMSTATE 0xF133 #define LVM_SETITEMSTATE 0xF133
/** /**
* \def LVM_SORTITEMS * \def LVM_SORTITEMS
@@ -974,7 +974,7 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Returns TRUE if successful, or FALSE otherwise. * \return Returns TRUE if successful, or FALSE otherwise.
*/ */
#define LVM_SORTITEMS 0xF134 #define LVM_SORTITEMS 0xF134
/** /**
* \def LVM_SETITEMHEIGHT * \def LVM_SETITEMHEIGHT
@@ -994,7 +994,7 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Returns TRUE if successful, or FALSE otherwise. * \return Returns TRUE if successful, or FALSE otherwise.
*/ */
#define LVM_SETITEMHEIGHT 0xF135 #define LVM_SETITEMHEIGHT 0xF135
/** /**
* \def LVM_SETHEADHEIGHT * \def LVM_SETHEADHEIGHT
@@ -1011,11 +1011,11 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* \param height The new height of the header. * \param height The new height of the header.
* \return Returns TRUE if successful, or FALSE otherwise. * \return Returns TRUE if successful, or FALSE otherwise.
*/ */
#define LVM_SETHEADHEIGHT 0xF136 #define LVM_SETHEADHEIGHT 0xF136
/** /**
* \def LVM_GETITEMADDDATA * \def LVM_GETITEMADDDATA
* \brief Get the 32-bit data value associated with an item. * \brief Gets the 32-bit data value associated with an item.
* *
* An application sends an LVM_GETITEMADDDATA message to a listview to get the * An application sends an LVM_GETITEMADDDATA message to a listview to get the
* 32-bit data value stored for the item with index of \a wParam; * 32-bit data value stored for the item with index of \a wParam;
@@ -1084,11 +1084,11 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
* *
* \return Always returns 0. * \return Always returns 0.
*/ */
#define LVM_CHOOSEITEM 0xF139 #define LVM_CHOOSEITEM 0xF139
/** /**
* \def LVM_SETSTRCMPFUNC * \def LVM_SETSTRCMPFUNC
* \brief Set the STRCMP function used to sort items. * \brief Sets the STRCMP function used to sort items.
* *
* An application sends a LVM_SETSTRCMPFUNC message to set a * An application sends a LVM_SETSTRCMPFUNC message to set a
* new STRCMP function to sort items in the Listview control. * new STRCMP function to sort items in the Listview control.
@@ -1174,7 +1174,7 @@ typedef LVNM_ITEMRUP *PLVNM_ITEMRUP;
/** /**
* \def LVM_SETCUSTOMDRAW * \def LVM_SETCUSTOMDRAW
* \brief Set the customized drawing functions of listview. * \brief Sets the customized drawing functions of listview.
* *
* \code * \code
* LVM_SETCUSTOMDRAW * LVM_SETCUSTOMDRAW
+1 -1
View File
@@ -327,7 +327,7 @@ typedef MENUBUTTONITEM* PMENUBUTTONITEM;
/** /**
* \def MBM_SETSTRCMPFUNC * \def MBM_SETSTRCMPFUNC
* \brief Set the STRCMP function used to sort items. * \brief Sets the STRCMP function used to sort items.
* *
* An application sends a MBM_SETSTRCMPFUNC message to set a * An application sends a MBM_SETSTRCMPFUNC message to set a
* new STRCMP function to sort items in the menubutton. * new STRCMP function to sort items in the menubutton.
+15 -15
View File
@@ -179,7 +179,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_GETCURDAY * \def MCM_GETCURDAY
* \brief Get the day number of the current selected date. * \brief Gets the day number of the current selected date.
* *
* \code * \code
* MCM_GETCURDAY * MCM_GETCURDAY
@@ -194,7 +194,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_GETCURMONTH * \def MCM_GETCURMONTH
* \brief Get the month number of the current selected date. * \brief Gets the month number of the current selected date.
* *
* \code * \code
* MCM_GETCURMONTH * MCM_GETCURMONTH
@@ -209,7 +209,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_GETCURYEAR * \def MCM_GETCURYEAR
* \brief Get the year number of the current selected date. * \brief Gets the year number of the current selected date.
* *
* \code * \code
* MCM_GETCURYEAR * MCM_GETCURYEAR
@@ -224,7 +224,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_GETCURWEEKDAY * \def MCM_GETCURWEEKDAY
* \brief Get the weekday number of the current selected date. * \brief Gets the weekday number of the current selected date.
* *
* \code * \code
* MCM_GETCURWEEKDAY * MCM_GETCURWEEKDAY
@@ -239,7 +239,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_GETCURMONLEN * \def MCM_GETCURMONLEN
* \brief Get the month length of the current selected date. * \brief Gets the month length of the current selected date.
* *
* \code * \code
* MCM_GETCURMONLEN * MCM_GETCURMONLEN
@@ -302,7 +302,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_SETTODAY * \def MCM_SETTODAY
* \brief Set the currently selected date as the date of "today". * \brief Sets the currently selected date as the date of "today".
* *
* \code * \code
* MCM_SETTODAY * MCM_SETTODAY
@@ -315,7 +315,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_GETFIRSTWEEKDAY * \def MCM_GETFIRSTWEEKDAY
* \brief Get the weekday of the first day of this month. * \brief Gets the weekday of the first day of this month.
* *
* \code * \code
* MCM_GETFIRSTWEEKDAY * MCM_GETFIRSTWEEKDAY
@@ -330,7 +330,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_GETCURDATE * \def MCM_GETCURDATE
* \brief Get the currently selected date. * \brief Gets the currently selected date.
* *
* \code * \code
* MCM_GETCURDATE * MCM_GETCURDATE
@@ -346,7 +346,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_GETTODAY * \def MCM_GETTODAY
* \brief Get the date of "today". * \brief Gets the date of "today".
* *
* \code * \code
* MCM_GETTODAY * MCM_GETTODAY
@@ -363,7 +363,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_GETMINREQRECTW * \def MCM_GETMINREQRECTW
* \brief Get the minimum width required to display a full month in a month * \brief Gets the minimum width required to display a full month in a month
* calendar control. * calendar control.
* *
* \code * \code
@@ -379,7 +379,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_GETMINREQRECTH * \def MCM_GETMINREQRECTH
* \brief Get the minimum height required to display a full month in a month * \brief Gets the minimum height required to display a full month in a month
* calendar control. * calendar control.
* *
* \code * \code
@@ -395,7 +395,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_SETCURDATE * \def MCM_SETCURDATE
* \brief Set the currently selected date. * \brief Sets the currently selected date.
* *
* \code * \code
* MCM_SETCURDATE * MCM_SETCURDATE
@@ -412,7 +412,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_SETCOLOR * \def MCM_SETCOLOR
* \brief Set the color of the monthcalendar control. * \brief Sets the color of the monthcalendar control.
* *
* \code * \code
* MCM_SETCOLOR * MCM_SETCOLOR
@@ -429,7 +429,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_GETCOLOR * \def MCM_GETCOLOR
* \brief Get the color of the monthcalendar control. * \brief Gets the color of the monthcalendar control.
* *
* \code * \code
* MCM_GETCOLOR * MCM_GETCOLOR
@@ -445,7 +445,7 @@ typedef MCCOLORINFO *PMCCOLORINFO;
/** /**
* \def MCM_SETDAYCOLOR * \def MCM_SETDAYCOLOR
* \brief Set the color of a specified date . * \brief Sets the color of a specified date .
* *
* \code * \code
* MCM_SETDAYCOLOR * MCM_SETDAYCOLOR
+2 -2
View File
@@ -346,7 +346,7 @@ typedef NTBITEMINFO* PNTBITEMINFO;
/** /**
* \def NTBM_SETITEM * \def NTBM_SETITEM
* \brief Set the information of an item in a newtoolbar control. * \brief Sets the information of an item in a newtoolbar control.
* *
* \code * \code
* NTBM_SETITEM * NTBM_SETITEM
@@ -386,7 +386,7 @@ typedef NTBITEMINFO* PNTBITEMINFO;
/** /**
* \def NTBM_SETBITMAP * \def NTBM_SETBITMAP
* \brief Set the bitmap of a newtoolbar control. * \brief Sets the bitmap of a newtoolbar control.
* *
* \code * \code
* NTBM_SETBITMAP * NTBM_SETBITMAP
+4 -4
View File
@@ -116,9 +116,9 @@ extern "C" {
/** /**
* \def PBM_SETRANGE * \def PBM_SETRANGE
* \brief Set the limits of the range. * \brief Sets the limits of the range.
* *
* Set the upper and lower limits of the progress bar control's range, * Sets the upper and lower limits of the progress bar control's range,
* and redraws the bar to reflect the new ranges. * and redraws the bar to reflect the new ranges.
* *
* \code * \code
@@ -155,9 +155,9 @@ extern "C" {
/** /**
* \def PBM_SETPOS * \def PBM_SETPOS
* \brief Set the progress bar control's current position. * \brief Sets the progress bar control's current position.
* *
* Set the progress bar control's current position as specified by nPos, * Sets the progress bar control's current position as specified by nPos,
* and redraw the bar to reflect the new position. * and redraw the bar to reflect the new position.
* *
* \code * \code
+8 -8
View File
@@ -126,7 +126,7 @@ extern "C" {
/** /**
* \def PSM_GETACTIVEPAGE * \def PSM_GETACTIVEPAGE
* \brief Get the handle of current active page. * \brief Gets the handle of current active page.
* *
* Sends this message to retreive the propsheet window's active page. * Sends this message to retreive the propsheet window's active page.
* *
@@ -163,7 +163,7 @@ extern "C" {
/** /**
* \def PSM_GETPAGE * \def PSM_GETPAGE
* \brief Get the handle of a page by index. * \brief Gets the handle of a page by index.
* *
* Sends this message to retreive the handle to a page by index. * Sends this message to retreive the handle to a page by index.
* *
@@ -183,7 +183,7 @@ extern "C" {
/** /**
* \def PSM_GETACTIVEINDEX * \def PSM_GETACTIVEINDEX
* \brief Get the index of the current active page. * \brief Gets the index of the current active page.
* *
* Sends this message to retreive the index of the propsheet window's active page. * Sends this message to retreive the index of the propsheet window's active page.
* *
@@ -200,7 +200,7 @@ extern "C" {
/** /**
* \def PSM_GETPAGEINDEX * \def PSM_GETPAGEINDEX
* \brief Get the index of a page by handle. * \brief Gets the index of a page by handle.
* *
* Sends this message to retreive the index to a page by handle. * Sends this message to retreive the index to a page by handle.
* *
@@ -220,7 +220,7 @@ extern "C" {
/** /**
* \def PSM_GETPAGECOUNT * \def PSM_GETPAGECOUNT
* \brief Get the number of pages of the propsheet. * \brief Gets the number of pages of the propsheet.
* *
* Sends this message to retreive the number of pages currently in the propsheet. * Sends this message to retreive the number of pages currently in the propsheet.
* *
@@ -237,7 +237,7 @@ extern "C" {
/** /**
* \def PSM_GETTITLELENGTH * \def PSM_GETTITLELENGTH
* \brief Get the length of a page title. * \brief Gets the length of a page title.
* *
* Sends this message to retreive the title length of a page. * Sends this message to retreive the title length of a page.
* *
@@ -257,7 +257,7 @@ extern "C" {
/** /**
* \def PSM_GETTITLE * \def PSM_GETTITLE
* \brief Get a page title. * \brief Gets a page title.
* *
* Sends this message to retreive the title of a page. * Sends this message to retreive the title of a page.
* *
@@ -279,7 +279,7 @@ extern "C" {
/** /**
* \def PSM_SETTITLE * \def PSM_SETTITLE
* \brief Set a page title. * \brief Sets a page title.
* *
* Sends this message to specify the title of a page. * Sends this message to specify the title of a page.
* *
+38 -38
View File
@@ -163,7 +163,7 @@ MG_EXPORT BOOL scrollview_is_item_selected (HSVITEM hsvi);
/** /**
* \fn int scrollview_set_item_height (HWND hWnd, HSVITEM hsvi, int height) * \fn int scrollview_set_item_height (HWND hWnd, HSVITEM hsvi, int height)
* \brief Set the height of an item * \brief Sets the height of an item
*/ */
MG_EXPORT int scrollview_set_item_height (HWND hWnd, HSVITEM hsvi, int height); MG_EXPORT int scrollview_set_item_height (HWND hWnd, HSVITEM hsvi, int height);
@@ -310,7 +310,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETITEMDRAW * \def SVM_SETITEMDRAW
* \brief Set the drawing operation of an item. * \brief Sets the drawing operation of an item.
* *
* Scrollview item drawing function will be called when doing with MSG_PAINT message, * Scrollview item drawing function will be called when doing with MSG_PAINT message,
* scrollview window should define this function if it want to draw an customed item. * scrollview window should define this function if it want to draw an customed item.
@@ -351,7 +351,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETCONTWIDTH * \def SVM_SETCONTWIDTH
* \brief Set the scrollview content area (scrollable area) width. * \brief Sets the scrollview content area (scrollable area) width.
* *
* Scrollable area of a scrolled window is always larger than the visible area. * Scrollable area of a scrolled window is always larger than the visible area.
* *
@@ -371,7 +371,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETCONTHEIGHT * \def SVM_SETCONTHEIGHT
* \brief Set the scrollview content area (scrollable area) height. * \brief Sets the scrollview content area (scrollable area) height.
* *
* Scrollable area of a scrolled window is always larger than the visible area. * Scrollable area of a scrolled window is always larger than the visible area.
* *
@@ -391,7 +391,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETCTRL * \def SVM_GETCTRL
* \brief Get the control handle in the scrollview window by control id. * \brief Gets the control handle in the scrollview window by control id.
* *
* \code * \code
* SVM_GETCTRL * SVM_GETCTRL
@@ -424,7 +424,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETITEMOPS * \def SVM_SETITEMOPS
* \brief Set the item operations of the items in the scrollview. * \brief Sets the item operations of the items in the scrollview.
* *
* Normally item operations should be set before adding items. * Normally item operations should be set before adding items.
* *
@@ -444,7 +444,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETMARGINS * \def SVM_GETMARGINS
* \brief Get the margin values of the scrollview. * \brief Gets the margin values of the scrollview.
* *
* Application should use a RECT structure to get left, top, right, and bottom margins. * Application should use a RECT structure to get left, top, right, and bottom margins.
* *
@@ -464,7 +464,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETMARGINS * \def SVM_SETMARGINS
* \brief Set the margin values of the scrollview. * \brief Sets the margin values of the scrollview.
* *
* Application should use a RECT structure to give left, top, right, and bottom margins. * Application should use a RECT structure to give left, top, right, and bottom margins.
* If you want to change a margin value, give a value large than zero, or else -1. * If you want to change a margin value, give a value large than zero, or else -1.
@@ -485,7 +485,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETLEFTMARGIN * \def SVM_GETLEFTMARGIN
* \brief Get the left margin value of the scrollview. * \brief Gets the left margin value of the scrollview.
* *
* \code * \code
* SVM_GETLEFTMARGIN * SVM_GETLEFTMARGIN
@@ -500,7 +500,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETTOPMARGIN * \def SVM_GETTOPMARGIN
* \brief Get the top margin value of the scrollview. * \brief Gets the top margin value of the scrollview.
* *
* \code * \code
* SVM_GETTOPMARGIN * SVM_GETTOPMARGIN
@@ -515,7 +515,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETRIGHTMARGIN * \def SVM_GETRIGHTMARGIN
* \brief Get the right margin value of the scrollview. * \brief Gets the right margin value of the scrollview.
* *
* \code * \code
* SVM_GETRIGHTMARGIN * SVM_GETRIGHTMARGIN
@@ -530,7 +530,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETBOTTOMMARGIN * \def SVM_GETBOTTOMMARGIN
* \brief Get the bottom margin value of the scrollview. * \brief Gets the bottom margin value of the scrollview.
* *
* \code * \code
* SVM_GETBOTTOMMARGIN * SVM_GETBOTTOMMARGIN
@@ -545,7 +545,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETVISIBLEWIDTH * \def SVM_GETVISIBLEWIDTH
* \brief Get the width of the visible content area. * \brief Gets the width of the visible content area.
* *
* \code * \code
* SVM_GETVISIBLEWIDTH * SVM_GETVISIBLEWIDTH
@@ -560,7 +560,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETVISIBLEHEIGHT * \def SVM_GETVISIBLEHEIGHT
* \brief Get the height of the visible content area. * \brief Gets the height of the visible content area.
* *
* \code * \code
* SVM_GETVISIBLEHEIGHT * SVM_GETVISIBLEHEIGHT
@@ -575,7 +575,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETCONTWIDTH * \def SVM_GETCONTWIDTH
* \brief Get the width of the content area. * \brief Gets the width of the content area.
* *
* \code * \code
* SVM_GETCONTWIDTH * SVM_GETCONTWIDTH
@@ -590,7 +590,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETCONTHEIGHT * \def SVM_GETCONTHEIGHT
* \brief Get the height of the content area. * \brief Gets the height of the content area.
* *
* \code * \code
* SVM_GETCONTHEIGHT * SVM_GETCONTHEIGHT
@@ -605,7 +605,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETCONTRANGE * \def SVM_SETCONTRANGE
* \brief Set the width and height of the content area. * \brief Sets the width and height of the content area.
* *
* If you want to change width and height, give a value large than zero. * If you want to change width and height, give a value large than zero.
* If you give -1, this value will remain untouched. * If you give -1, this value will remain untouched.
@@ -627,7 +627,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETCONTENTX * \def SVM_GETCONTENTX
* \brief Get the content x offset in the viewport. * \brief Gets the content x offset in the viewport.
* *
* \code * \code
* SVM_GETCONTENTX * SVM_GETCONTENTX
@@ -642,7 +642,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETCONTENTY * \def SVM_GETCONTENTY
* \brief Get the content y offset in the viewport. * \brief Gets the content y offset in the viewport.
* *
* \code * \code
* SVM_GETCONTENTY * SVM_GETCONTENTY
@@ -657,7 +657,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETCONTPOS * \def SVM_SETCONTPOS
* \brief Set the content offset position in the viewport. * \brief Sets the content offset position in the viewport.
* *
* \code * \code
* SVM_SETCONTPOS * SVM_SETCONTPOS
@@ -676,7 +676,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETCURSEL * \def SVM_GETCURSEL
* \brief Get the index of the current hilighted scrollview item. * \brief Gets the index of the current hilighted scrollview item.
* *
* An application sends an this message to a scrollview window to get the index of * An application sends an this message to a scrollview window to get the index of
* the currently selected item, if there is one, in a single-selection scrollview. * the currently selected item, if there is one, in a single-selection scrollview.
@@ -775,7 +775,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETITEMINIT * \def SVM_SETITEMINIT
* \brief Set the init operation of the items in the scrollview. * \brief Sets the init operation of the items in the scrollview.
* *
* Normally item operations should be set before adding items. * Normally item operations should be set before adding items.
* The initialization callback function will be called when adding an item. * The initialization callback function will be called when adding an item.
@@ -796,7 +796,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETITEMDESTROY * \def SVM_SETITEMDESTROY
* \brief Set the destroy operation of the items in the scrollview. * \brief Sets the destroy operation of the items in the scrollview.
* *
* Normally item operations should be set before adding items. * Normally item operations should be set before adding items.
* The destroy callback function will be called when deleting an item * The destroy callback function will be called when deleting an item
@@ -817,7 +817,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETITEMCMP * \def SVM_SETITEMCMP
* \brief Set the item compare function. * \brief Sets the item compare function.
* *
* \code * \code
* SVM_SETITEMCMP * SVM_SETITEMCMP
@@ -852,7 +852,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETCONTAINERPROC * \def SVM_SETCONTAINERPROC
* \brief Set the window procedure of the container window in the scrollview. * \brief Sets the window procedure of the container window in the scrollview.
* *
* \code * \code
* SVM_SETCONTAINERPROC * SVM_SETCONTAINERPROC
@@ -870,7 +870,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETFOCUSCHILD * \def SVM_GETFOCUSCHILD
* \brief Get the focus control in the scrollview. * \brief Gets the focus control in the scrollview.
* *
* \code * \code
* SVM_GETFOCUSCHILD * SVM_GETFOCUSCHILD
@@ -885,7 +885,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETHSCROLLVAL * \def SVM_GETHSCROLLVAL
* \brief Get the horizontal scroll value. * \brief Gets the horizontal scroll value.
* *
* \code * \code
* SVM_GETHSCROLLVAL * SVM_GETHSCROLLVAL
@@ -900,7 +900,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETVSCROLLVAL * \def SVM_GETVSCROLLVAL
* \brief Get the vertical scroll value. * \brief Gets the vertical scroll value.
* *
* \code * \code
* SVM_GETVSCROLLVAL * SVM_GETVSCROLLVAL
@@ -915,7 +915,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETHSCROLLPAGEVAL * \def SVM_GETHSCROLLPAGEVAL
* \brief Get the horizontal page scroll value. * \brief Gets the horizontal page scroll value.
* *
* \code * \code
* SVM_GETHSCROLLPAGEVAL * SVM_GETHSCROLLPAGEVAL
@@ -930,7 +930,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETVSCROLLPAGEVAL * \def SVM_GETVSCROLLPAGEVAL
* \brief Get the vertical page scroll value. * \brief Gets the vertical page scroll value.
* *
* \code * \code
* SVM_GETVSCROLLPAGEVAL * SVM_GETVSCROLLPAGEVAL
@@ -945,7 +945,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETSCROLLVAL * \def SVM_SETSCROLLVAL
* \brief Set the horizontal and vertical scroll value. * \brief Sets the horizontal and vertical scroll value.
* *
* \code * \code
* SVM_SETSCROLLVAL * SVM_SETSCROLLVAL
@@ -964,7 +964,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETSCROLLPAGEVAL * \def SVM_SETSCROLLPAGEVAL
* \brief Set the horizontal and vertical page value. * \brief Sets the horizontal and vertical page value.
* *
* \code * \code
* SVM_SETSCROLLPAGEVAL * SVM_SETSCROLLPAGEVAL
@@ -1000,7 +1000,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETITEMCOUNT * \def SVM_GETITEMCOUNT
* \brief Get the total number of the items. * \brief Gets the total number of the items.
* *
* \return Number of the items. * \return Number of the items.
*/ */
@@ -1008,7 +1008,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETITEMADDDATA * \def SVM_GETITEMADDDATA
* \brief Get the additional data of the item * \brief Gets the additional data of the item
* *
* \code * \code
* SVM_GETITEMADDDATA * SVM_GETITEMADDDATA
@@ -1029,7 +1029,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETITEMADDDATA * \def SVM_SETITEMADDDATA
* \brief Set the additional data of the item * \brief Sets the additional data of the item
* *
* \code * \code
* SVM_SETITEMADDDATA * SVM_SETITEMADDDATA
@@ -1069,7 +1069,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_SETITEMHEIGHT * \def SVM_SETITEMHEIGHT
* \brief Set the height of an item * \brief Sets the height of an item
* *
* \code * \code
* SVM_SETITEMHEIGHT * SVM_SETITEMHEIGHT
@@ -1089,7 +1089,7 @@ typedef SVITEMINFO* PSVITEMINFO;
/** /**
* \def SVM_GETFIRSTVISIBLEITEM * \def SVM_GETFIRSTVISIBLEITEM
* \brief Get the index of the first visible item * \brief Gets the index of the first visible item
* *
* \code * \code
* SVM_GETFIRSTVISIBLEITEM * SVM_GETFIRSTVISIBLEITEM
@@ -1114,7 +1114,7 @@ typedef SVITEMINFO* PSVITEMINFO;
#define SVN_SELCHANGED 2 #define SVN_SELCHANGED 2
/** Indicates the hilighted item changing */ /** Indicates the hilighted item changing */
#define SVN_SELCHANGING 4 #define SVN_SELCHANGING 4
/** @} end of ctrl_scrollview_ncs */ /** @} end of ctrl_scrollview_ncs */
+7 -7
View File
@@ -100,7 +100,7 @@ typedef SPININFO *PSPININFO;
/** /**
* \fn void GetSpinBoxSize (DWORD dwStyle, int* w, int* h) * \fn void GetSpinBoxSize (DWORD dwStyle, int* w, int* h)
* \brief Get size of a vertical spin box control. * \brief Gets size of a vertical spin box control.
* *
* The spin box control in MiniGUI has fixed size. * The spin box control in MiniGUI has fixed size.
* This function gets the size of a spin box control. * This function gets the size of a spin box control.
@@ -167,7 +167,7 @@ void GetSpinBoxSize (DWORD dwStyle, int* w, int* h);
/** /**
* \def SPM_SETTARGET * \def SPM_SETTARGET
* \brief Set the target window of the spinbox. * \brief Sets the target window of the spinbox.
* *
* When the user click the up/left or down/right arrow of the spin box, it will * When the user click the up/left or down/right arrow of the spin box, it will
* emulate the down and up of the key SCANCODE_CURSORBLOCKUP or * emulate the down and up of the key SCANCODE_CURSORBLOCKUP or
@@ -190,7 +190,7 @@ void GetSpinBoxSize (DWORD dwStyle, int* w, int* h);
/** /**
* \def SPM_GETTARGET * \def SPM_GETTARGET
* \brief Get the target window of the spinbox. * \brief Gets the target window of the spinbox.
* *
* \code * \code
* SPM_GETTARGET * SPM_GETTARGET
@@ -205,7 +205,7 @@ void GetSpinBoxSize (DWORD dwStyle, int* w, int* h);
/** /**
* \def SPM_SETINFO * \def SPM_SETINFO
* \brief Set the parameter information of the spinbox. * \brief Sets the parameter information of the spinbox.
* *
* \code * \code
* SPM_SETINFO * SPM_SETINFO
@@ -225,7 +225,7 @@ void GetSpinBoxSize (DWORD dwStyle, int* w, int* h);
/** /**
* \def SPM_GETINFO * \def SPM_GETINFO
* \brief Get the parameter infos of the spinbox. * \brief Gets the parameter infos of the spinbox.
* *
* \code * \code
* SPM_GETINFO * SPM_GETINFO
@@ -305,7 +305,7 @@ void GetSpinBoxSize (DWORD dwStyle, int* w, int* h);
/** /**
* \def SPM_SETCUR * \def SPM_SETCUR
* \brief Set the current position in the range of the spinbox. * \brief Sets the current position in the range of the spinbox.
* *
* \code * \code
* SPM_SETCUR * SPM_SETCUR
@@ -323,7 +323,7 @@ void GetSpinBoxSize (DWORD dwStyle, int* w, int* h);
/** /**
* \def SPM_GETCUR * \def SPM_GETCUR
* \brief Get the current position in the range of the spinbox. * \brief Gets the current position in the range of the spinbox.
* *
* \code * \code
* SPM_GETCUR * SPM_GETCUR

Some files were not shown because too many files have changed in this diff Show More