INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Win32 API Service features"
project: "Visual Eiffel"
revision: "$Revision: 1.1 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: dm
class DM_WINDOWS_SYSTEM
inherit

DMRT_CORE
end
feature

open_select_file (dialogue_title: STRING; default_extention: INTEGER; filter_names: ARRAY [STRING]; filter_extentions: ARRAY [STRING]): STRING
-- allows to invoke standard OpenFileDialogue without Windows API details
require
non_void_title: dialogue_title /= void
non_void_filter_names: filter_names /= void
non_void_filter_extentions: filter_extentions /= void
valid_filters_length: filter_extentions.count = filter_names.count
valid_filters_lower: filter_extentions.lower = filter_names.lower
valid_filters_upper: filter_extentions.upper = filter_names.upper
valid_default_extention: filter_names.lower <= default_extention and then default_extention <= filter_names.upper

save_select_file (dialogue_title: STRING; file_name: STRING; default_extention: INTEGER; filter_names: ARRAY [STRING]; filter_extentions: ARRAY [STRING]): STRING
-- allows to invoke standard OpenFileDialogue without Windows API details
require
non_void_title: dialogue_title /= void
non_void_file_name: file_name /= void
non_void_filter_names: filter_names /= void
non_void_filter_extentions: filter_extentions /= void
valid_filters_length: filter_extentions.count = filter_names.count
valid_filters_lower: filter_extentions.lower = filter_names.lower
valid_default_extention: filter_names.lower <= default_extention and then default_extention <= filter_names.upper

get_open_file_name (filter, title, def_ext: STRING): STRING

get_save_file_name (filter, title, filename, def_ext: STRING): STRING

get_browse_folder_name (h_wnd: INTEGER; title: STRING; initial_folder_name: STRING; flags: INTEGER): STRING
--h_wnd = HWND of dialog's parent window. use form's sys_id or 0
--title = hint prompt
--initial_folder_name = initial selection (must exist)
--flags = combination of the following flags (or zero)
-- (you can access this flags through once function "bif_const",
-- e.x : "bif_const.BIF_BROWSEFORCOMPUTER):
-- BIF_BROWSEFORCOMPUTER Only return computers.
-- If the user selects anything other than a computer,
-- the OK button is grayed.
-- BIF_BROWSEFORPRINTER Only return printers. If the user
-- selects anything other than a printer, the OK button is grayed.
-- BIF_BROWSEINCLUDEFILES The browse dialog will display files
-- as well as folders.
-- BIF_DONTGOBELOWDOMAIN Do not include network folders
-- below the domain level in the tree view control.
-- BIF_EDITBOX Version 4.71. The browse dialog includes an edit control
-- in which the user can type the name of an item.
-- BIF_RETURNFSANCESTORS Only return file system ancestors.
-- If the user selects anything other than a file system ancestor,
-- the OK button is grayed.
-- BIF_RETURNONLYFSDIRS Only return file system directories.
-- If the user selects folders that are not part of the file system,
-- the OK button is grayed.
-- BIF_STATUSTEXT Include a status area in the dialog box.
-- The callback function can set the status text by sending messages
-- to the dialog box.
-- BIF_VALIDATE Version 4.71. If the user types an invalid name
-- into the edit box, the browse dialog will call
-- the application's BrowseCallbackProc
-- with the BFFM_VALIDATEFAILED message. This flag is ignored
-- if BIF_EDITBOX is not specified.

message_info (title, msgtext: STRING)

message_warning (title, msgtext: STRING)

message_error (title, msgtext: STRING)

message_question (title, msgtext: STRING): BOOLEAN

msg_box (hwnd: INTEGER; title, msgtext: STRING; flags: INTEGER): INTEGER
require
valid_params: title /= void and then msgtext /= void

message_beep

mdi_tile (hwnd: INTEGER)
-- #define WM_MDITILE                      0x0226

mdi_cascade (hwnd: INTEGER)

mdi_icon_arrange (hwnd: INTEGER)

bif_const: DM_BIF_CONST
end -- class DM_WINDOWS_SYSTEM

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES