Source:TyranoMapHack123/D3Scene.cpp5

From Codemotion
< Source:TyranoMapHack123
Revision as of 23:23, 4 October 2009 by Root (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Source:TyranoMapHack123/D3Scene.cpp5

Description

Main Source - Part 5: Buttons

Code

Parent Directory: Source:TyranoMapHack123
Plain Code: edit

  1. 	case WM_CREATE:
  2. 		InitCommonControls();
  3.  
  4. 		CreateWindowEx(0, "BUTTON", "Minimize to tray", WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | BS_TEXT | BS_CENTER | BS_VCENTER, 250,437,200,20, hwnd, (HMENU)IDC_MINIMIZE, GetModuleHandle(NULL), NULL);
  5.  
  6. 		boutc1 = CreateWindow("button",
  7. 			"All features", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  8. 			20,10,200,25,
  9. 			hwnd,
  10. 			(HMENU)IDB_BOUT1,
  11. 			hInst, NULL);
  12.  
  13. 		boutc2 = CreateWindow("button",
  14. 			"Reveal units map", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  15. 			20,30,200,25,
  16. 			hwnd,
  17. 			(HMENU)IDB_BOUT2,
  18. 			hInst, NULL);
  19.  
  20. 		boutc3 = CreateWindow("button",
  21. 			"Reveal units minimap", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  22. 			20,50,200,25,
  23. 			hwnd,
  24. 			(HMENU)IDB_BOUT3,
  25. 			hInst, NULL);
  26.  
  27. 		boutc4 = CreateWindow("button",
  28. 			"Remove fog map", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  29. 			20,70,200,25,
  30. 			hwnd,
  31. 			(HMENU)IDB_BOUT4,
  32. 			hInst, NULL);
  33.  
  34. 		boutc5 = CreateWindow("button",
  35. 			"Remove fog minimap", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  36. 			20,90,200,25,
  37. 			hwnd,
  38. 			(HMENU)IDB_BOUT5,
  39. 			hInst, NULL);
  40.  
  41. 		boutc6 = CreateWindow("button",
  42. 			"Clickable units", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  43. 			20,110,200,25,
  44. 			hwnd,
  45. 			(HMENU)IDB_BOUT6,
  46. 			hInst, NULL);
  47.  
  48. 		/*
  49. 		boutc7 = CreateWindow("button",
  50. 		"Hotkey Mode (sucks)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  51. 		20,420,200,25,
  52. 		hwnd,
  53. 		(HMENU)IDB_BOUT7,
  54. 		hInst, NULL);
  55. 		*/
  56.  
  57. 		boutc8 = CreateWindow("button",
  58. 			"Show illusions (sd333221)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  59. 			20,230,200,25,
  60. 			hwnd,
  61. 			(HMENU)IDB_BOUT8,
  62. 			hInst, NULL);
  63.  
  64. 		boutc9 = CreateWindow("button",
  65. 			"Show resources",  WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  66. 			20,130,200,25,
  67. 			hwnd,
  68. 			(HMENU)IDB_BOUT9,
  69. 			hInst, NULL);
  70.  
  71. 		boutc10 = CreateWindow("button",
  72. 			"Show invisible (cancels red units)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  73. 			20,150,200,25,
  74. 			hwnd,
  75. 			(HMENU)IDB_BOUT10,
  76. 			hInst, NULL);
  77.  
  78. 		boutc11 = CreateWindow("button",
  79. 			"Show runes/items (sd333221)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  80. 			20,210,200,25,
  81. 			hwnd,
  82. 			(HMENU)IDB_BOUT11,
  83. 			hInst, NULL);
  84.  
  85. 		boutc12 = CreateWindow("button",
  86. 			"Show all HP bars (Darimus)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  87. 			250,70,200,25,
  88. 			hwnd,
  89. 			(HMENU)IDB_BOUT12,
  90. 			hInst, NULL);
  91.  
  92. 		boutc13 = CreateWindow("button",
  93. 			"Enemy HP bars (Darimus)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  94. 			250,90,200,25,
  95. 			hwnd,
  96. 			(HMENU)IDB_BOUT13,
  97. 			hInst, NULL);
  98.  
  99. 		boutc14 = CreateWindow("button",
  100. 			"Ally HP bars (Darimus)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  101. 			250,110,200,25,
  102. 			hwnd,
  103. 			(HMENU)IDB_BOUT14,
  104. 			hInst, NULL);
  105. 		/*
  106. 		boutc15 = CreateWindow("button",
  107. 		"Loadblock and forcelag (private)", WS_DISABLED | WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  108. 		20,491,200,25,
  109. 		hwnd,
  110. 		(HMENU)IDB_BOUT15,
  111. 		hInst, NULL);
  112. 		*/
  113. 		boutc16 = CreateWindow("button",
  114. 			"Show enemy pings (sd333221)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  115. 			250,150,200,25,
  116. 			hwnd,
  117. 			(HMENU)IDB_BOUT16,
  118. 			hInst, NULL);
  119.  
  120. 		boutc17 = CreateWindow("button",
  121. 			"Bypass -ah in DotA (sd333221)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  122. 			250,130,200,25,
  123. 			hwnd,
  124. 			(HMENU)IDB_BOUT17,
  125. 			hInst, NULL);
  126.  
  127. 		boutc18 = CreateWindow("button",
  128. 			"Click invisible (sd333221)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  129. 			20,170,200,25,
  130. 			hwnd,
  131. 			(HMENU)IDB_BOUT18,
  132. 			hInst, NULL);
  133.  
  134. 		boutc19 = CreateWindow("button",
  135. 			"Colored invisible units (sd333221)",  WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  136. 			20,190,200,25,
  137. 			hwnd,
  138. 			(HMENU)IDB_BOUT19,
  139. 			hInst, NULL);
  140.  
  141. 		boutc20 = CreateWindow("button",
  142. 			"Show skills (sd333221)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  143. 			20,250,200,25,
  144. 			hwnd,
  145. 			(HMENU)IDB_BOUT20,
  146. 			hInst, NULL);
  147.  
  148. 		boutc21 = CreateWindow("button",
  149. 			"Show cooldowns (sd333221)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  150. 			20,270,200,25,
  151. 			hwnd,
  152. 			(HMENU)IDB_BOUT21,
  153. 			hInst, NULL);
  154.  
  155. 		boutc22 = CreateWindow("button",
  156. 			"All hero icons (cqccyh)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  157. 			250,10,200,25,
  158. 			hwnd,
  159. 			(HMENU)IDB_BOUT22,
  160. 			hInst, NULL);
  161.  
  162. 		boutc23 = CreateWindow("button",
  163. 			"Enable trade amount (sd333221)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  164. 			20,290,200,25,
  165. 			hwnd,
  166. 			(HMENU)IDB_BOUT23,
  167. 			hInst, NULL);
  168.  
  169. 		boutc24 = CreateWindow("button",
  170. 			"Enemy hero icons (cqccyh)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  171. 			250,30,200,25,
  172. 			hwnd,
  173. 			(HMENU)IDB_BOUT24,
  174. 			hInst, NULL);
  175.  
  176. 		boutc25 = CreateWindow("button",
  177. 			"Ally hero icons (cqccyh)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  178. 			250,50,200,25,
  179. 			hwnd,
  180. 			(HMENU)IDB_BOUT25,
  181. 			hInst, NULL);
  182.  
  183. 		boutc41 = CreateWindow("button",
  184. 			"Turn off hotkeys", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  185. 			250,170,200,25,
  186. 			hwnd,
  187. 			(HMENU)IDB_BOUT41,
  188. 			hInst, NULL);
  189.  
  190. 		boutc53 = CreateWindow("button",
  191. 			"Remove Zoom Angles (Wynthar)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  192. 			250,190,200,25,
  193. 			hwnd,
  194. 			(HMENU)IDB_BOUT53,
  195. 			hInst, NULL);
  196.  
  197.         boutc54 = CreateWindow("button",
  198. 			"Top View (Wynthar)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  199. 			250,210,200,25,
  200. 			hwnd,
  201. 			(HMENU)IDB_BOUT54,
  202. 			hInst, NULL);
  203.  
  204.         boutc57 = CreateWindow("button",
  205. 			"- 90° Spin (Wynthar)", WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
  206. 			250,230,200,25,
  207. 			hwnd,
  208. 			(HMENU)IDB_BOUT57,
  209. 			hInst, NULL);
  210.  
  211. 		group1 = CreateWindow("button",
  212. 			"", 
  213. 			WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 
  214. 			10,0, 220,317, 
  215. 			hwnd,
  216. 			0,
  217. 			hInst, NULL);
  218.  
  219. 		group2 = CreateWindow("button",
  220. 			"", 
  221. 			WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 
  222. 			240,0,220,256, 
  223. 			hwnd,
  224. 			0,
  225. 			hInst, NULL);
  226.  
  227. 		group3 = CreateWindow("button",
  228. 			"", 
  229. 			WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 
  230. 			10,320,220,165, 
  231. 			hwnd,
  232. 			0,
  233. 			hInst, NULL);
  234.  
  235. 		group4 = CreateWindow("button",
  236. 			"", 
  237. 			WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 
  238. 			240,255,220,230, 
  239. 			hwnd,
  240. 			0,
  241. 			hInst, NULL);
  242.  
  243. 		hwndEdit = CreateWindow(TEXT("edit"), NULL,
  244. 			WS_CHILD | WS_VISIBLE | WS_BORDER,
  245. 			20, 336, 145, 20, hwnd, (HMENU) ID_EDIT,
  246. 			((LPCREATESTRUCT) lParam)->hInstance, NULL);
  247.  
  248. 		bout1 = CreateWindow("button",
  249. 			"Spoof", 
  250. 		    WS_CHILD | WS_VISIBLE , 
  251. 			171,335,50,22, 
  252. 			hwnd,
  253. 			(HMENU)IDB_BOUT0,
  254. 			hInst, NULL);
  255.  
  256. 		bout2 = CreateWindow("button",
  257. 			"Camera distance", 
  258. 			WS_CHILD | WS_VISIBLE , 
  259. 			350,362,100,22, 
  260. 			hwnd,
  261. 			(HMENU)IDB_BOUT42,
  262. 			hInst, NULL);
  263.  
  264. 		bout3 = CreateWindow("button",
  265. 			"Min Trade Amount", 
  266. 		 WS_CHILD | WS_VISIBLE , 
  267. 			350,387,100,22, 
  268. 			hwnd,
  269. 			(HMENU)IDB_BOUT47,
  270. 			hInst, NULL);
  271.  
  272. 		bout4 = CreateWindow("button",
  273. 			"Max Trade Amount", 
  274. 		 WS_CHILD | WS_VISIBLE , 
  275. 			350,412,100,22, 
  276. 			hwnd,
  277. 			(HMENU)IDB_BOUT48,
  278. 			hInst, NULL);
  279.  
  280. 		bout5 = CreateWindow("button",
  281. 			"www.d3scene.com", 
  282. 			WS_CHILD | WS_VISIBLE , 
  283. 			//249,288,201,40,
  284.             250, 459, 200, 20, 
  285. 			hwnd,
  286. 			(HMENU)IDB_BOUT49,
  287. 			hInst, NULL);
  288.  
  289. 		bout6 = CreateWindow("button",
  290. 			"Grab my CD-Keys", 
  291. 		    WS_CHILD | WS_VISIBLE , 
  292. 			249,289,201,20, 
  293. 			hwnd,
  294. 			(HMENU)IDB_BOUT52,
  295. 			hInst, NULL);
  296.  
  297. 		bout7 = CreateWindow("button",
  298. 			"Smooth Camera Distance", 
  299. 		    WS_CHILD | WS_VISIBLE , 
  300. 			305,266,145,20, 
  301. 			hwnd,
  302. 			(HMENU)IDB_BOUT55,
  303. 			hInst, NULL);
  304.  
  305. 		hwndEdit2 = CreateWindow(TEXT("edit"), NULL,
  306. 			WS_CHILD | WS_VISIBLE | WS_BORDER,
  307. 			250,363,93,20, hwnd, (HMENU) IDB_BOUT44,
  308. 			((LPCREATESTRUCT) lParam)->hInstance, NULL);
  309.  
  310. 		hwndEdit3 = CreateWindow(TEXT("edit"), NULL,
  311. 			WS_CHILD | WS_VISIBLE | WS_BORDER,
  312. 			250,388,93,20, hwnd, (HMENU) IDB_BOUT45,
  313. 			((LPCREATESTRUCT) lParam)->hInstance, NULL);
  314.  
  315. 		hwndEdit4 = CreateWindow(TEXT("edit"), NULL,
  316. 			WS_CHILD | WS_VISIBLE | WS_BORDER,
  317. 			250,413,93,20, hwnd, (HMENU) IDB_BOUT46,
  318. 			((LPCREATESTRUCT) lParam)->hInstance, NULL);
  319.  
  320. 		hwndEdit5 = CreateWindow(TEXT("edit"), NULL,
  321. 			WS_CHILD | WS_VISIBLE | WS_BORDER,
  322. 			250,337,199,20, hwnd, (HMENU) IDB_BOUT50,
  323. 			((LPCREATESTRUCT) lParam)->hInstance, NULL);
  324.  
  325. 		hwndEdit6 = CreateWindow(TEXT("edit"), NULL,
  326. 			WS_CHILD | WS_VISIBLE | WS_BORDER,
  327. 			250,313,199,20, hwnd, (HMENU) IDB_BOUT51,
  328. 			((LPCREATESTRUCT) lParam)->hInstance, NULL);
  329.  
  330. 		hwndEdit7 = CreateWindow(TEXT("edit"), NULL,
  331. 			WS_CHILD | WS_VISIBLE | WS_BORDER,
  332. 			250,267,50,18, hwnd, (HMENU) IDB_BOUT56,
  333. 			((LPCREATESTRUCT) lParam)->hInstance, NULL);
  334.  
  335. 		stat2 = CreateWindow("static",
  336. 			"", WS_CHILD | WS_VISIBLE | WS_BORDER,
  337. 			20,360,200,16,
  338. 			hwnd,
  339. 			0, hInst, NULL);
Personal tools