Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
2.3 KiB

  1. /****************************************************
  2. *
  3. * STANDARD DIALOG OPEN BOX TEMPLATE
  4. *
  5. * Uses the control id's in the defdlg.h file,
  6. * as used by DefDlgOpenProc().
  7. *
  8. ****************************************************/
  9. #include "defdlg.h" // this file is just #define's since the Windows
  10. // dialog editor is stupid and can't deal with
  11. // anything else in an include file.
  12. /*
  13. * DIALOG OPEN BOX TEMPLATE
  14. *
  15. * Note that this dialog template has the following features:
  16. *
  17. * - Uses no-integral-height listboxes, so that the listboxes will be
  18. * the exact size you told them to be, but not an even multiple of
  19. * the font size. The LBS_NOINTEGRALHEIGHT flag controls this.
  20. *
  21. * - Sets the dialog font to be 8 point helvetica. This is the standard
  22. * Windows3 applet style, but can be changed if desired by changing
  23. * the FONT statement.
  24. *
  25. * The following controls must be present for DefDlgOpenProc() to work:
  26. * DLGOPEN_EDIT editbox
  27. * DLGOPEN_PATH static text box
  28. * DLGOPEN_FILE_LISTBOX listbox - must be ownerdraw!
  29. * DLGOPEN_DIR_LISTBOX listbox
  30. *
  31. * BUTTONS using the ids IDOK and IDCANCEL to allow the box to
  32. * close itself or cancel.
  33. *
  34. */
  35. DLGOPENBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 25, 22, 182, 110
  36. STYLE WS_BORDER | WS_CAPTION | DS_MODALFRAME | WS_DLGFRAME | WS_SYSMENU | WS_VISIBLE | WS_POPUP
  37. FONT 8, "Helv"
  38. BEGIN
  39. CONTROL "", DLGOPEN_EDIT, "edit", ES_LEFT | ES_AUTOHSCROLL | ES_OEMCONVERT | WS_BORDER | WS_GROUP | WS_TABSTOP | WS_CHILD, 45, 7, 130, 12
  40. CONTROL "Path", DLGOPEN_PATH, "static", SS_LEFT | SS_NOPREFIX | WS_GROUP | WS_CHILD, 70, 26, 110, 9
  41. CONTROL "", DLGOPEN_FILE_LISTBOX, "listbox", LBS_NOTIFY | LBS_SORT | LBS_STANDARD | WS_BORDER | WS_VSCROLL | WS_GROUP | WS_TABSTOP | WS_CHILD | LBS_NOINTEGRALHEIGHT, 5, 26, 60, 75
  42. CONTROL "", DLGOPEN_DIR_LISTBOX, "listbox", LBS_NOTIFY | LBS_SORT | LBS_STANDARD | LBS_OWNERDRAWFIXED | LBS_HASSTRINGS | WS_BORDER | WS_VSCROLL | WS_TABSTOP | WS_CHILD | LBS_NOINTEGRALHEIGHT, 70, 42, 60, 59
  43. CONTROL "OK", IDOK, "button", BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP | WS_CHILD, 135, 53, 40, 14
  44. CONTROL "Cancel", IDCANCEL, "button", BS_PUSHBUTTON | WS_GROUP | WS_TABSTOP | WS_CHILD, 135, 75, 40, 14
  45. CONTROL "Filename:", -1, "static", SS_LEFT | WS_GROUP | WS_CHILD, 5, 7, 40, 12
  46. END