Clone of UAS2 @ https://github.com/drudgedance/uas2

commondialog.cpp 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2. // NOTE: Do not modify the contents of this file. If this class is regenerated by
  3. // Microsoft Visual C++, your modifications will be overwritten.
  4. #include "stdafx.h"
  5. #include "commondialog.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CCommonDialog1
  8. IMPLEMENT_DYNCREATE(CCommonDialog1, CWnd)
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CCommonDialog1 properties
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CCommonDialog1 operations
  13. CString CCommonDialog1::GetFileName()
  14. {
  15. CString result;
  16. InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  17. return result;
  18. }
  19. void CCommonDialog1::SetFileName(LPCTSTR lpszNewValue)
  20. {
  21. static BYTE parms[] =
  22. VTS_BSTR;
  23. InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  24. lpszNewValue);
  25. }
  26. CString CCommonDialog1::GetDialogTitle()
  27. {
  28. CString result;
  29. InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  30. return result;
  31. }
  32. void CCommonDialog1::SetDialogTitle(LPCTSTR lpszNewValue)
  33. {
  34. static BYTE parms[] =
  35. VTS_BSTR;
  36. InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  37. lpszNewValue);
  38. }
  39. CString CCommonDialog1::GetFilter()
  40. {
  41. CString result;
  42. InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  43. return result;
  44. }
  45. void CCommonDialog1::SetFilter(LPCTSTR lpszNewValue)
  46. {
  47. static BYTE parms[] =
  48. VTS_BSTR;
  49. InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  50. lpszNewValue);
  51. }
  52. CString CCommonDialog1::GetDefaultExt()
  53. {
  54. CString result;
  55. InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  56. return result;
  57. }
  58. void CCommonDialog1::SetDefaultExt(LPCTSTR lpszNewValue)
  59. {
  60. static BYTE parms[] =
  61. VTS_BSTR;
  62. InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  63. lpszNewValue);
  64. }
  65. CString CCommonDialog1::GetInitDir()
  66. {
  67. CString result;
  68. InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  69. return result;
  70. }
  71. void CCommonDialog1::SetInitDir(LPCTSTR lpszNewValue)
  72. {
  73. static BYTE parms[] =
  74. VTS_BSTR;
  75. InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  76. lpszNewValue);
  77. }
  78. unsigned long CCommonDialog1::GetColor()
  79. {
  80. unsigned long result;
  81. InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  82. return result;
  83. }
  84. void CCommonDialog1::SetColor(unsigned long newValue)
  85. {
  86. static BYTE parms[] =
  87. VTS_I4;
  88. InvokeHelper(0x6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  89. newValue);
  90. }
  91. long CCommonDialog1::GetFlags()
  92. {
  93. long result;
  94. InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  95. return result;
  96. }
  97. void CCommonDialog1::SetFlags(long nNewValue)
  98. {
  99. static BYTE parms[] =
  100. VTS_I4;
  101. InvokeHelper(0x7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  102. nNewValue);
  103. }
  104. CString CCommonDialog1::GetFontName()
  105. {
  106. CString result;
  107. InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  108. return result;
  109. }
  110. void CCommonDialog1::SetFontName(LPCTSTR lpszNewValue)
  111. {
  112. static BYTE parms[] =
  113. VTS_BSTR;
  114. InvokeHelper(0x8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  115. lpszNewValue);
  116. }
  117. BOOL CCommonDialog1::GetFontBold()
  118. {
  119. BOOL result;
  120. InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  121. return result;
  122. }
  123. void CCommonDialog1::SetFontBold(BOOL bNewValue)
  124. {
  125. static BYTE parms[] =
  126. VTS_BOOL;
  127. InvokeHelper(0x9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  128. bNewValue);
  129. }
  130. BOOL CCommonDialog1::GetFontItalic()
  131. {
  132. BOOL result;
  133. InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  134. return result;
  135. }
  136. void CCommonDialog1::SetFontItalic(BOOL bNewValue)
  137. {
  138. static BYTE parms[] =
  139. VTS_BOOL;
  140. InvokeHelper(0xa, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  141. bNewValue);
  142. }
  143. BOOL CCommonDialog1::GetFontStrikeThru()
  144. {
  145. BOOL result;
  146. InvokeHelper(0xb, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  147. return result;
  148. }
  149. void CCommonDialog1::SetFontStrikeThru(BOOL bNewValue)
  150. {
  151. static BYTE parms[] =
  152. VTS_BOOL;
  153. InvokeHelper(0xb, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  154. bNewValue);
  155. }
  156. BOOL CCommonDialog1::GetFontUnderLine()
  157. {
  158. BOOL result;
  159. InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  160. return result;
  161. }
  162. void CCommonDialog1::SetFontUnderLine(BOOL bNewValue)
  163. {
  164. static BYTE parms[] =
  165. VTS_BOOL;
  166. InvokeHelper(0xc, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  167. bNewValue);
  168. }
  169. short CCommonDialog1::GetFromPage()
  170. {
  171. short result;
  172. InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  173. return result;
  174. }
  175. void CCommonDialog1::SetFromPage(short nNewValue)
  176. {
  177. static BYTE parms[] =
  178. VTS_I2;
  179. InvokeHelper(0xd, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  180. nNewValue);
  181. }
  182. short CCommonDialog1::GetToPage()
  183. {
  184. short result;
  185. InvokeHelper(0xe, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  186. return result;
  187. }
  188. void CCommonDialog1::SetToPage(short nNewValue)
  189. {
  190. static BYTE parms[] =
  191. VTS_I2;
  192. InvokeHelper(0xe, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  193. nNewValue);
  194. }
  195. short CCommonDialog1::GetMin()
  196. {
  197. short result;
  198. InvokeHelper(0xf, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  199. return result;
  200. }
  201. void CCommonDialog1::SetMin(short nNewValue)
  202. {
  203. static BYTE parms[] =
  204. VTS_I2;
  205. InvokeHelper(0xf, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  206. nNewValue);
  207. }
  208. short CCommonDialog1::GetMax()
  209. {
  210. short result;
  211. InvokeHelper(0x10, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  212. return result;
  213. }
  214. void CCommonDialog1::SetMax(short nNewValue)
  215. {
  216. static BYTE parms[] =
  217. VTS_I2;
  218. InvokeHelper(0x10, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  219. nNewValue);
  220. }
  221. short CCommonDialog1::GetCopies()
  222. {
  223. short result;
  224. InvokeHelper(0x11, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  225. return result;
  226. }
  227. void CCommonDialog1::SetCopies(short nNewValue)
  228. {
  229. static BYTE parms[] =
  230. VTS_I2;
  231. InvokeHelper(0x11, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  232. nNewValue);
  233. }
  234. BOOL CCommonDialog1::GetCancelError()
  235. {
  236. BOOL result;
  237. InvokeHelper(0x12, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  238. return result;
  239. }
  240. void CCommonDialog1::SetCancelError(BOOL bNewValue)
  241. {
  242. static BYTE parms[] =
  243. VTS_BOOL;
  244. InvokeHelper(0x12, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  245. bNewValue);
  246. }
  247. CString CCommonDialog1::GetHelpFile()
  248. {
  249. CString result;
  250. InvokeHelper(0x13, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  251. return result;
  252. }
  253. void CCommonDialog1::SetHelpFile(LPCTSTR lpszNewValue)
  254. {
  255. static BYTE parms[] =
  256. VTS_BSTR;
  257. InvokeHelper(0x13, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  258. lpszNewValue);
  259. }
  260. short CCommonDialog1::GetHelpCommand()
  261. {
  262. short result;
  263. InvokeHelper(0x14, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  264. return result;
  265. }
  266. void CCommonDialog1::SetHelpCommand(short nNewValue)
  267. {
  268. static BYTE parms[] =
  269. VTS_I2;
  270. InvokeHelper(0x14, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  271. nNewValue);
  272. }
  273. CString CCommonDialog1::GetHelpKey()
  274. {
  275. CString result;
  276. InvokeHelper(0x15, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  277. return result;
  278. }
  279. void CCommonDialog1::SetHelpKey(LPCTSTR lpszNewValue)
  280. {
  281. static BYTE parms[] =
  282. VTS_BSTR;
  283. InvokeHelper(0x15, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  284. lpszNewValue);
  285. }
  286. BOOL CCommonDialog1::GetPrinterDefault()
  287. {
  288. BOOL result;
  289. InvokeHelper(0x16, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  290. return result;
  291. }
  292. void CCommonDialog1::SetPrinterDefault(BOOL bNewValue)
  293. {
  294. static BYTE parms[] =
  295. VTS_BOOL;
  296. InvokeHelper(0x16, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  297. bNewValue);
  298. }
  299. short CCommonDialog1::GetFilterIndex()
  300. {
  301. short result;
  302. InvokeHelper(0x17, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  303. return result;
  304. }
  305. void CCommonDialog1::SetFilterIndex(short nNewValue)
  306. {
  307. static BYTE parms[] =
  308. VTS_I2;
  309. InvokeHelper(0x17, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  310. nNewValue);
  311. }
  312. long CCommonDialog1::GetHelpContext()
  313. {
  314. long result;
  315. InvokeHelper(0x18, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  316. return result;
  317. }
  318. void CCommonDialog1::SetHelpContext(long nNewValue)
  319. {
  320. static BYTE parms[] =
  321. VTS_I4;
  322. InvokeHelper(0x18, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  323. nNewValue);
  324. }
  325. float CCommonDialog1::GetFontSize()
  326. {
  327. float result;
  328. InvokeHelper(0x19, DISPATCH_PROPERTYGET, VT_R4, (void*)&result, NULL);
  329. return result;
  330. }
  331. void CCommonDialog1::SetFontSize(float newValue)
  332. {
  333. static BYTE parms[] =
  334. VTS_R4;
  335. InvokeHelper(0x19, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  336. newValue);
  337. }
  338. short CCommonDialog1::GetAction()
  339. {
  340. short result;
  341. InvokeHelper(0x1a, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  342. return result;
  343. }
  344. void CCommonDialog1::SetAction(short nNewValue)
  345. {
  346. static BYTE parms[] =
  347. VTS_I2;
  348. InvokeHelper(0x1a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  349. nNewValue);
  350. }
  351. short CCommonDialog1::GetMaxFileSize()
  352. {
  353. short result;
  354. InvokeHelper(0x1b, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL);
  355. return result;
  356. }
  357. void CCommonDialog1::SetMaxFileSize(short nNewValue)
  358. {
  359. static BYTE parms[] =
  360. VTS_I2;
  361. InvokeHelper(0x1b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  362. nNewValue);
  363. }
  364. long CCommonDialog1::GetHDC()
  365. {
  366. long result;
  367. InvokeHelper(0x1c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  368. return result;
  369. }
  370. void CCommonDialog1::SetHDC(long nNewValue)
  371. {
  372. static BYTE parms[] =
  373. VTS_I4;
  374. InvokeHelper(0x1c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  375. nNewValue);
  376. }
  377. CString CCommonDialog1::GetFileTitle()
  378. {
  379. CString result;
  380. InvokeHelper(0x1d, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  381. return result;
  382. }
  383. void CCommonDialog1::SetFileTitle(LPCTSTR lpszNewValue)
  384. {
  385. static BYTE parms[] =
  386. VTS_BSTR;
  387. InvokeHelper(0x1d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  388. lpszNewValue);
  389. }
  390. void CCommonDialog1::ShowOpen()
  391. {
  392. InvokeHelper(0x1e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  393. }
  394. void CCommonDialog1::ShowSave()
  395. {
  396. InvokeHelper(0x1f, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  397. }
  398. void CCommonDialog1::ShowColor()
  399. {
  400. InvokeHelper(0x20, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  401. }
  402. void CCommonDialog1::ShowFont()
  403. {
  404. InvokeHelper(0x21, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  405. }
  406. void CCommonDialog1::ShowPrinter()
  407. {
  408. InvokeHelper(0x22, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  409. }
  410. void CCommonDialog1::ShowHelp()
  411. {
  412. InvokeHelper(0x23, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  413. }
  414. long CCommonDialog1::GetOrientation()
  415. {
  416. long result;
  417. InvokeHelper(0x24, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  418. return result;
  419. }
  420. void CCommonDialog1::SetOrientation(long nNewValue)
  421. {
  422. static BYTE parms[] =
  423. VTS_I4;
  424. InvokeHelper(0x24, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  425. nNewValue);
  426. }