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.

570 lines
12 KiB

  1. /***************************************************************************/
  2. /*********************** include file for UI Library *********************/
  3. /***************************************************************************/
  4. #ifndef __uilstf_
  5. #define __uilstf_
  6. _dt_system(User Interface Library)
  7. _dt_subsystem(General Dialog Handling)
  8. _dt_public
  9. #define STF_MESSAGE (WM_USER + 0x8000)
  10. /*
  11. ** Window Messages
  12. */
  13. _dt_public
  14. #define STF_UI_EVENT (STF_MESSAGE)
  15. _dt_public
  16. #define STF_DESTROY_DLG (STF_MESSAGE + 1)
  17. _dt_public
  18. #define STF_HELP_DLG_DESTROYED (STF_MESSAGE + 2)
  19. _dt_public
  20. #define STF_INFO_DLG_DESTROYED (STF_MESSAGE + 3)
  21. _dt_public
  22. #define STF_EDIT_DLG_DESTROYED (STF_MESSAGE + 4)
  23. _dt_public
  24. #define STF_RADIO_DLG_DESTROYED (STF_MESSAGE + 5)
  25. _dt_public
  26. #define STF_CHECK_DLG_DESTROYED (STF_MESSAGE + 6)
  27. _dt_public
  28. #define STF_LIST_DLG_DESTROYED (STF_MESSAGE + 7)
  29. _dt_public
  30. #define STF_MULTI_DLG_DESTROYED (STF_MESSAGE + 8)
  31. _dt_public
  32. #define STF_QUIT_DLG_DESTROYED (STF_MESSAGE + 9)
  33. _dt_public
  34. #define STF_DLG_ACTIVATE (STF_MESSAGE + 10)
  35. _dt_public
  36. #define STF_UILIB_ACTIVATE (STF_MESSAGE + 11)
  37. _dt_public
  38. #define STF_REINITDIALOG (STF_MESSAGE + 12)
  39. _dt_public
  40. #define STF_SHL_INTERP (STF_MESSAGE + 13)
  41. _dt_hidden
  42. #define STF_COMBO_DLG_DESTROYED (STF_MESSAGE + 14)
  43. _dt_hidden
  44. #define STF_MULTICOMBO_DLG_DESTROYED (STF_MESSAGE + 15)
  45. _dt_hidden
  46. #define STF_DUAL_DLG_DESTROYED (STF_MESSAGE + 16)
  47. _dt_hidden
  48. #define STF_MULTICOMBO_RADIO_DLG_DESTROYED (STF_MESSAGE + 17)
  49. _dt_hidden
  50. #define STF_MAINT_DLG_DESTROYED (STF_MESSAGE + 18)
  51. _dt_hidden
  52. #define STF_SET_INSTRUCTION_TEXT (STF_MESSAGE + 0x100)
  53. _dt_hidden
  54. #define STF_SET_HELP_CONTEXT (STF_MESSAGE + 0x101)
  55. _dt_hidden
  56. #define STF_ENABLE_EXIT_BUTTON (STF_MESSAGE + 0x102)
  57. _dt_hidden
  58. #define STF_ERROR_ABORT (STF_MESSAGE + 0x103)
  59. #include <setupxrc.h>
  60. #if !defined(STF_SET_INSTRUCTION_TEXT_RC) || (STF_SET_INSTRUCTION_TEXT_RC != STF_MESSAGE + 0x104)
  61. #error STF_SET_INSTRUCTION_TEXT_RC has changed!
  62. #endif
  63. //
  64. // Button IDS to communicate help and exit button messages to shell
  65. //
  66. #define ID_EXITBUTTON 7
  67. #define ID_HELPBUTTON 8
  68. /*
  69. ** Symbols used by Basic Dialog Class procedures
  70. */
  71. #define CLS_MYDLGS "mydlg"
  72. #define DLGTEXT "DlgText"
  73. #define DLGCAPTION "Caption"
  74. #define DLGTYPE "DlgType"
  75. #define DLGTEMPLATE "DlgTemplate"
  76. #define INSTRUCTIONTEXT "InstructionText"
  77. #define HELPCONTEXT "HelpContext"
  78. #define EXITSTATE "ExitState"
  79. #define EXIT_ENABLE "Active"
  80. #define EXIT_DISABLE "Inactive"
  81. /*
  82. ** PushButton Control IDs
  83. */
  84. _dt_public
  85. #define IDC_A 401
  86. _dt_public
  87. #define IDC_B 402
  88. _dt_public
  89. #define IDC_C 403
  90. _dt_public
  91. #define IDC_D 404
  92. _dt_public
  93. #define IDC_E 405
  94. _dt_public
  95. #define IDC_F 406
  96. _dt_public
  97. #define IDC_G 407
  98. _dt_public
  99. #define IDC_H 408
  100. _dt_public
  101. #define IDC_I 409
  102. _dt_public
  103. #define IDC_J 410
  104. _dt_public
  105. #define IDC_K 411
  106. _dt_public
  107. #define IDC_L 412
  108. _dt_public
  109. #define IDC_M 413
  110. _dt_public
  111. #define IDC_N 414
  112. _dt_public
  113. #define IDC_O 415
  114. _dt_public
  115. #define IDC_P 416
  116. _dt_public
  117. #define IDC_Q 417
  118. _dt_public
  119. #define IDC_R 418
  120. _dt_public
  121. #define IDC_S 419
  122. _dt_public
  123. #define IDC_T 420
  124. _dt_public
  125. #define IDC_U 421
  126. _dt_public
  127. #define IDC_V 422
  128. _dt_public
  129. #define IDC_W 423
  130. _dt_public
  131. #define IDC_X 424
  132. _dt_public
  133. #define IDC_Y 425
  134. _dt_public
  135. #define IDC_Z 426
  136. /*
  137. ** Text Control IDs
  138. */
  139. _dt_public
  140. #define IDC_TEXT1 431
  141. _dt_public
  142. #define IDC_TEXT2 432
  143. _dt_public
  144. #define IDC_TEXT3 433
  145. _dt_public
  146. #define IDC_TEXT4 434
  147. _dt_public
  148. #define IDC_TEXT5 435
  149. _dt_public
  150. #define IDC_TEXT6 436
  151. _dt_public
  152. #define IDC_TEXT7 437
  153. _dt_public
  154. #define IDC_TEXT8 438
  155. _dt_public
  156. #define IDC_TEXT9 439
  157. _dt_public
  158. #define IDC_TEXT10 440
  159. _dt_public
  160. #define IDC_TEXT11 441
  161. /*
  162. ** Radio and Checkbox Button Control IDs
  163. */
  164. _dt_public
  165. #define IDC_B0 450
  166. _dt_public
  167. #define IDC_B1 451
  168. _dt_public
  169. #define IDC_B2 452
  170. _dt_public
  171. #define IDC_B3 453
  172. _dt_public
  173. #define IDC_B4 454
  174. _dt_public
  175. #define IDC_B5 455
  176. _dt_public
  177. #define IDC_B6 456
  178. _dt_public
  179. #define IDC_B7 457
  180. _dt_public
  181. #define IDC_B8 458
  182. _dt_public
  183. #define IDC_B9 459
  184. _dt_public
  185. #define IDC_B10 460
  186. _dt_public
  187. #define IDC_RB0 610
  188. _dt_public
  189. #define IDC_RB1 611
  190. _dt_public
  191. #define IDC_RB2 612
  192. _dt_public
  193. #define IDC_RB3 613
  194. _dt_public
  195. #define IDC_RB4 614
  196. _dt_public
  197. #define IDC_RB5 615
  198. _dt_public
  199. #define IDC_RB6 616
  200. _dt_public
  201. #define IDC_RB7 617
  202. _dt_public
  203. #define IDC_RB8 618
  204. _dt_public
  205. #define IDC_RB9 619
  206. _dt_public
  207. #define IDC_RB10 620
  208. /*
  209. ** Generic Dialog Button IDs
  210. */
  211. _dt_public
  212. #define IDC_BTN0 630
  213. _dt_public
  214. #define IDC_BTN1 631
  215. _dt_public
  216. #define IDC_BTN2 632
  217. _dt_public
  218. #define IDC_BTN3 633
  219. _dt_public
  220. #define IDC_BTN4 634
  221. _dt_public
  222. #define IDC_BTN5 635
  223. _dt_public
  224. #define IDC_BTN6 636
  225. _dt_public
  226. #define IDC_BTN7 637
  227. _dt_public
  228. #define IDC_BTN8 638
  229. _dt_public
  230. #define IDC_BTN9 639
  231. /*
  232. ** Combo box IDs
  233. */
  234. _dt_public
  235. #define IDC_COMBO0 480
  236. _dt_public
  237. #define IDC_COMBO1 481
  238. _dt_public
  239. #define IDC_COMBO2 482
  240. _dt_public
  241. #define IDC_COMBO3 483
  242. _dt_public
  243. #define IDC_COMBO4 484
  244. _dt_public
  245. #define IDC_COMBO5 485
  246. _dt_public
  247. #define IDC_COMBO6 486
  248. _dt_public
  249. #define IDC_COMBO7 487
  250. _dt_public
  251. #define IDC_COMBO8 488
  252. _dt_public
  253. #define IDC_COMBO9 489
  254. /*
  255. ** ICON IDs
  256. */
  257. _dt_public
  258. #define IDC_ICON0 500
  259. _dt_public
  260. #define IDC_ICON1 501
  261. _dt_public
  262. #define IDC_ICON2 502
  263. _dt_public
  264. #define IDC_ICON3 503
  265. _dt_public
  266. #define IDC_ICON4 504
  267. _dt_public
  268. #define IDC_ICON5 505
  269. _dt_public
  270. #define IDC_ICON6 506
  271. _dt_public
  272. #define IDC_ICON7 507
  273. _dt_public
  274. #define IDC_ICON8 508
  275. _dt_public
  276. #define IDC_ICON9 509
  277. /*
  278. ** SPECIAL PUSHBUTTONS
  279. */
  280. _dt_public
  281. #define IDC_SP1 521
  282. _dt_public
  283. #define IDC_SP2 522
  284. _dt_public
  285. #define IDC_SP3 523
  286. _dt_public
  287. #define IDC_SP4 524
  288. _dt_public
  289. #define IDC_SP5 525
  290. _dt_public
  291. #define IDC_SP6 526
  292. _dt_public
  293. #define IDC_SP7 527
  294. _dt_public
  295. #define IDC_SP8 528
  296. _dt_public
  297. #define IDC_SP9 529
  298. _dt_public
  299. #define IDC_SP10 530
  300. /*
  301. ** STATUS TEXT FIELDS
  302. */
  303. _dt_public
  304. #define IDC_STATUS1 541
  305. _dt_public
  306. #define IDC_STATUS2 542
  307. _dt_public
  308. #define IDC_STATUS3 543
  309. _dt_public
  310. #define IDC_STATUS4 544
  311. _dt_public
  312. #define IDC_STATUS5 545
  313. _dt_public
  314. #define IDC_STATUS6 546
  315. _dt_public
  316. #define IDC_STATUS7 547
  317. _dt_public
  318. #define IDC_STATUS8 548
  319. _dt_public
  320. #define IDC_STATUS9 549
  321. _dt_public
  322. #define IDC_STATUS10 550
  323. /*
  324. ** SIZE FIELDS ASSOCIATED WITH CHECK OPTIONAL COMPONENTS
  325. */
  326. _dt_public
  327. #define IDC_SIZE1 551
  328. _dt_public
  329. #define IDC_SIZE2 552
  330. _dt_public
  331. #define IDC_SIZE3 553
  332. _dt_public
  333. #define IDC_SIZE4 554
  334. _dt_public
  335. #define IDC_SIZE5 555
  336. _dt_public
  337. #define IDC_SIZE6 556
  338. _dt_public
  339. #define IDC_SIZE7 557
  340. _dt_public
  341. #define IDC_SIZE8 558
  342. _dt_public
  343. #define IDC_SIZE9 559
  344. _dt_public
  345. #define IDC_SIZE10 560
  346. /*
  347. ** TOTALS OF SIZES
  348. */
  349. _dt_public
  350. #define IDC_TOTAL1 561
  351. _dt_public
  352. #define IDC_TOTAL2 562
  353. _dt_public
  354. #define IDC_TOTAL3 563
  355. _dt_public
  356. #define IDC_TOTAL4 564
  357. _dt_public
  358. #define IDC_TOTAL5 565
  359. _dt_public
  360. #define IDC_TOTAL6 566
  361. _dt_public
  362. #define IDC_TOTAL7 567
  363. _dt_public
  364. #define IDC_TOTAL8 568
  365. _dt_public
  366. #define IDC_TOTAL9 569
  367. _dt_public
  368. #define IDC_TOTAL10 570
  369. /*
  370. ** MAXIMUM SIZES
  371. */
  372. _dt_public
  373. #define IDC_MAX1 571
  374. _dt_public
  375. #define IDC_MAX2 572
  376. _dt_public
  377. #define IDC_MAX3 573
  378. _dt_public
  379. #define IDC_MAX4 574
  380. _dt_public
  381. #define IDC_MAX5 575
  382. _dt_public
  383. #define IDC_MAX6 576
  384. _dt_public
  385. #define IDC_MAX7 577
  386. _dt_public
  387. #define IDC_MAX8 578
  388. _dt_public
  389. #define IDC_MAX9 579
  390. _dt_public
  391. #define IDC_MAX10 580
  392. /*
  393. ** Edit Control IDs
  394. */
  395. #define IDC_EDIT1 581
  396. #define IDC_EDIT2 582
  397. #define IDC_EDIT3 583
  398. #define IDC_EDIT4 584
  399. #define IDC_EDIT5 585
  400. #define IDC_EDIT6 586
  401. #define IDC_EDIT7 587
  402. #define IDC_EDIT8 588
  403. #define IDC_EDIT9 589
  404. #define IDC_EDIT10 590
  405. /*
  406. ** ListBox Control IDs
  407. */
  408. #define IDC_LIST1 591
  409. #define IDC_LIST2 592
  410. #define IDC_LIST3 593
  411. #define IDC_LIST4 594
  412. #define IDC_LIST5 595
  413. #define IDC_LIST6 596
  414. #define IDC_LIST7 597
  415. #define IDC_LIST8 598
  416. #define IDC_LIST9 599
  417. #define IDC_LIST10 600
  418. /*
  419. ** MENU IDS
  420. */
  421. #define ID_MAINTAIN 651
  422. /*
  423. ** ID_MAINTAIN MENU IDS
  424. */
  425. #define MENU_CHANGE 701
  426. #define MENU_INSTALL 702
  427. #define MENU_ADD_REMOVE 703
  428. #define MENU_EXIT 704
  429. #define MENU_HELPINDEX 705
  430. #define MENU_HELPSEARCH 706
  431. #define MENU_HELPONHELP 708
  432. #define MENU_HELPONLINE 709
  433. #define MENU_ABOUT 710
  434. #define MENU_PROFILE 711
  435. #define MENU_ADD_REMOVE_SCSI 712
  436. #define MENU_ADD_REMOVE_TAPE 713
  437. /*
  438. ** Handle-Dialog type
  439. */
  440. _dt_public typedef HWND HDLG;
  441. /*
  442. ** Event Handler Return Code type
  443. */
  444. _dt_public typedef USHORT EHRC;
  445. _dt_public
  446. #define ehrcError (EHRC) 0
  447. _dt_public
  448. #define ehrcNoPost (EHRC) 1
  449. _dt_public
  450. #define ehrcPostInterp (EHRC) 2
  451. _dt_public
  452. #define ehrcNotHandled (EHRC) 3
  453. /*
  454. ** Prototype for Specific Dialog Event Handlers -- 1632
  455. */
  456. _dt_public typedef EHRC ( APIENTRY *PFNEVENT)(HANDLE, HWND, UINT, WPARAM, DWORD);
  457. /* Standard Dialog handler routines */
  458. extern LONG APIENTRY LDefSetupDlgProc(HWND, UINT, WPARAM, LONG);
  459. extern BOOL APIENTRY FGstInfoDlgProc(HWND, UINT, WPARAM, LONG);
  460. extern BOOL APIENTRY FGstEditDlgProc(HWND, UINT, WPARAM, LONG);
  461. extern BOOL APIENTRY FGstMultiEditDlgProc(HWND, UINT, WPARAM, LONG);
  462. extern BOOL APIENTRY FGstGetPathDlgProc(HWND, UINT, WPARAM, LONG);
  463. extern BOOL APIENTRY FGstRadioDlgProc(HWND, UINT, WPARAM, LONG);
  464. extern BOOL APIENTRY FGstCheckDlgProc(HWND, UINT, WPARAM, LONG);
  465. extern BOOL APIENTRY FGstCheck1DlgProc(HWND, UINT, WPARAM, LONG);
  466. extern BOOL APIENTRY FGstListDlgProc(HWND, UINT, WPARAM, LONG);
  467. extern BOOL APIENTRY FGstMultiDlgProc(HWND, UINT, WPARAM, LONG);
  468. extern BOOL APIENTRY FGstModelessDlgProc(HWND, UINT, WPARAM, LONG);
  469. extern BOOL APIENTRY FGstMultiComboDlgProc(HWND, UINT, WPARAM, LONG);
  470. extern BOOL APIENTRY FGstComboRadDlgProc(HWND, UINT, WPARAM, LONG);
  471. extern BOOL APIENTRY FGstCombinationDlgProc(HWND, UINT, WPARAM, LONG);
  472. extern BOOL APIENTRY FGstDualDlgProc(HWND, UINT, WPARAM, LONG);
  473. extern BOOL APIENTRY FGstDual1DlgProc(HWND, UINT, WPARAM, LONG);
  474. extern BOOL APIENTRY FGstMaintDlgProc(HWND, UINT, WPARAM, LONG);
  475. extern BOOL APIENTRY FGstBillboardDlgProc(HWND, UINT, WPARAM, LONG);
  476. extern BOOL APIENTRY FAppAbout(HWND, UINT, WPARAM, LONG);
  477. /* stack manipulation routines */
  478. extern HDLG APIENTRY HdlgPushDbcb(HANDLE, SZ, SZ, HWND, WNDPROC, DWORD,
  479. PFNEVENT, SZ, WNDPROC);
  480. extern BOOL APIENTRY FPopDbcb(VOID);
  481. extern BOOL APIENTRY FPopNDbcb(INT);
  482. extern BOOL APIENTRY FUiLibFilter(MSG *);
  483. extern BOOL APIENTRY FResumeStackTop(VOID);
  484. extern SZ APIENTRY SzStackTopName(VOID);
  485. extern BOOL APIENTRY FGenericEventHandler(HANDLE, HWND, UINT, WPARAM, DWORD); // 1632
  486. extern BOOL APIENTRY FStackEmpty(VOID);
  487. extern HDLG APIENTRY HdlgStackTop(VOID);
  488. //
  489. // Display of integer items in text fields
  490. //
  491. extern VOID MySetDlgItemInt(HDLG, INT, LONG);
  492. extern VOID NumericFormat(SZ szSrcBuf, SZ szDispBuf);
  493. //
  494. // Winhelp related externals
  495. //
  496. extern BOOL FInitWinHelpFile(HWND, SZ, SZ, SZ, SZ);
  497. extern BOOL FCloseWinHelp(HWND);
  498. extern BOOL FProcessWinHelp(HWND);
  499. extern BOOL FProcessWinHelpMenu(HWND, WORD);
  500. #endif
  501.