Source:TyranoMapHack123/D3Scene.cpp6

From Codemotion
Jump to: navigation, search

Source:TyranoMapHack123/D3Scene.cpp6

Description

Main Source - Part 6: More Buttons

Code

Parent Directory: Source:TyranoMapHack123
Plain Code: edit

  1. 		col1 = CreateWindow("button",
  2. 			"Blue", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  3. 			19,382,70,20,
  4. 			hwnd,
  5. 			(HMENU)IDB_BOUT26,
  6. 			hInst, NULL);
  7.  
  8. 		col2 = CreateWindow("button",
  9. 			"Red", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  10. 			89,382,70,20,
  11. 			hwnd,
  12. 			(HMENU)IDB_BOUT27,
  13. 			hInst, NULL);
  14.  
  15. 		col3 = CreateWindow("button",
  16. 			"Green", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  17. 			159,382,70,20,
  18. 			hwnd,
  19. 			(HMENU)IDB_BOUT28,
  20. 			hInst, NULL);
  21.  
  22. 		col4 = CreateWindow("button",
  23. 			"Yellow", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  24. 			19,402,70,20,
  25. 			hwnd,
  26. 			(HMENU)IDB_BOUT29,
  27. 			hInst, NULL);
  28.  
  29. 		col5 = CreateWindow("button",
  30. 			"Purple", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  31. 			89,402,70,20,
  32. 			hwnd,
  33. 			(HMENU)IDB_BOUT30,
  34. 			hInst, NULL);
  35.  
  36. 		col6 = CreateWindow("button",
  37. 			"Pink", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  38. 			159,402,70,20,
  39. 			hwnd,
  40. 			(HMENU)IDB_BOUT31,
  41. 			hInst, NULL);
  42.  
  43. 		col7 = CreateWindow("button",
  44. 			"Grey", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  45. 			19,422,70,20,
  46. 			hwnd,
  47. 			(HMENU)IDB_BOUT32,
  48. 			hInst, NULL);
  49.  
  50. 		col8 = CreateWindow("button",
  51. 			"Black", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  52. 			89,422,70,20,
  53. 			hwnd,
  54. 			(HMENU)IDB_BOUT33,
  55. 			hInst, NULL);
  56.  
  57. 		col9 = CreateWindow("button",
  58. 			"White", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  59. 			159,422,70,20,
  60. 			hwnd,
  61. 			(HMENU)IDB_BOUT34,
  62. 			hInst, NULL);
  63.  
  64. 		col10= CreateWindow("button",
  65. 			"Teal", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  66. 			19,442,70,20,
  67. 			hwnd,
  68. 			(HMENU)IDB_BOUT35,
  69. 			hInst, NULL);
  70.  
  71. 		col11= CreateWindow("button",
  72. 			"Cyan", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  73. 			89,442,70,20,
  74. 			hwnd,
  75. 			(HMENU)IDB_BOUT36,
  76. 			hInst, NULL);
  77.  
  78. 		col12= CreateWindow("button",
  79. 			"Brown", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  80. 			159,442,70,20,
  81. 			hwnd,
  82. 			(HMENU)IDB_BOUT37,
  83. 			hInst, NULL);
  84.  
  85. 		col13= CreateWindow("button",
  86. 			"Wine", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  87. 			19,462,70,20,
  88. 			hwnd,
  89. 			(HMENU)IDB_BOUT38,
  90. 			hInst, NULL);
  91.  
  92. 		col14= CreateWindow("button",
  93. 			"Forest", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  94. 			89,462,70,20,
  95. 			hwnd,
  96. 			(HMENU)IDB_BOUT39,
  97. 			hInst, NULL); 
  98.  
  99. 		col15= CreateWindow("button",
  100. 			"Mustard", WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON ,
  101. 			159,462,70,20,
  102. 			hwnd,
  103. 			(HMENU)IDB_BOUT40,
  104. 			hInst, NULL);                                                                                          
  105.  
  106. 		font=GetStockObject (DEFAULT_GUI_FONT);
  107. 		enfant=GetWindow(hwnd,GW_CHILD);
  108. 		do
  109. 		{
  110. 			SendMessage(enfant,WM_SETFONT,(WPARAM)font,0);
  111. 			enfant=GetWindow(enfant,GW_HWNDNEXT);
  112. 		}while (enfant);  
  113.  
  114. 		break;
  115.  
  116. 	case WM_DESTROY:
  117. 		PostQuitMessage (0);      
  118. 		break;
  119. 	default:                     
  120. 		return DefWindowProc (hwnd, message, wParam, lParam);
  121. 	}
  122.  
  123. 	return 0;
  124. }
Personal tools