ms_oforms/controls/form/
designex.rs

1pub type DXMode = u32;
2
3#[repr(i8)]
4#[derive(Debug)]
5pub enum ClickControlMode {
6    /// Use the same value as the client application design-time settings.
7    Inherit = -2,
8    /// Use the client application default value.
9    Default = -1,
10    /// Select the control under the cursor, and set the insertion point under the cursor, both on the same click.
11    InsertionPoint = 0,
12    /// If the control under the cursor is already selected, set the insertion point under the cursor; otherwise, select the control.
13    SelectThenInsert = 1,
14}
15
16#[derive(Debug)]
17#[repr(u8)]
18pub enum DblClickControlMode {
19    /// Use the same value as the client application design-time settings.
20    Inherit = 0xFE,
21    /// Select any text that is under the cursor.
22    SelectText = 0x00,
23    /// Display and set focus to the code associated with the control that is under the cursor.
24    EditCode = 0x01,
25    /// Display the properties of the control that is under the cursor.
26    EditProperties = 0x02,
27}
28
29#[derive(Debug)]
30pub struct DesignExtender {
31    /// default: 0x00015F55
32    pub bit_flags: DXMode,
33    /// default: InsertionPoint
34    pub click_control_mode: ClickControlMode,
35    /// default: SelectText
36    pub double_click_control_mode: DblClickControlMode,
37
38    pub grid_x: i32,
39
40    pub grid_y: i32,
41}