voici mon code: #include <iostream> #include <Windows.h> #include <CommCtrl.h> #pragma…
- User
voici mon code: #include #include <Windows.h> #include <CommCtrl.h>
#pragma comment(lib, "comctl32.lib")
#define WINDOW_WIDTH 480 #define WINDOW_HEIGHT 360
#define BUTTON_WIDTH 120 #define BUTTON_HEIGHT 30
#define JG_WIDTH 300 #define JG_HEIGHT 30
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // Register window class WNDCLASSEX wc; wc.cbSize = sizeof(WNDCLASSEX); wc.style = 0; wc.lpfnWndProc = WndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH)(COLOR_WINDOW); wc.lpszMenuName = NULL; wc.lpszClassName = "XevyyyCheat"; wc.hIconSm = NULL;
if (!RegisterClassEx(&wc)) { MessageBox(NULL, "Window Registration Failed!", "Error", MB_ICONEXCLAMATION | MB_OK); return 0; } // Create window HWND hwnd = CreateWindowEx( WS_EX_CLIENTEDGE, "XevyyyCheat", "Xevyyy Cheat", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, WINDOW_WIDTH, WINDOW_HEIGHT, NULL, NULL, hInstance, NULL); if (hwnd == NULL) { MessageBox(NULL, "Window Creation Failed!", "Error", MB_ICONEXCLAMATION | MB_OK); return 0; } // Create button controls HWND aimbotBtn = CreateWindow( "BUTTON", // Predefined class; Unicode assumed "Aimbot", // Button text WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, // Styles 20, // x position 20, // y position BUTTON_WIDTH, // Button width BUTTON_HEIGHT, // Button height hwnd, // Parent window NULL, // No menu. hInstance, NULL); // Pointer not needed. HWND triggerbotBtn = CreateWindow( "BUTTON", // Predefined class; Unicode assumed "Triggerbot", // Button text WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, // Styles 160, // x position 20, // y position BUTTON_WIDTH, // Button width BUTTON_HEIGHT, // Button height hwnd, // Parent window NULL, // No menu. hInstance, NULL); // Pointer not needed. HWND spinbotBtn = CreateWindow( "BUTTON", // Predefined class; Unicode assumed "Spinbot", // Button text WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, // Styles 300, // x position 20, // y position BUTTON_WIDTH, // Button width BUTTON_HEIGHT, // Button height hwnd, // Parent window NULL, // No menu. hInstance, NULL); // Pointer not needed. // Create Jiggle control HWND jiggleControl = CreateWindowEx( 0, TRACKBAR_CLASS, NULL, WS_CHILD | WS_VISIBLE | TBS_AUTOTICKS, (WINDOW_WIDTH - JG_WIDTH) / 2, 100, JG_WIDTH, JG_HEIGHT, hwnd, (HMENU)1, hInstance, NULL); SendMessage(jiggleControl, TBM_SETRANGE, TRUE, MAKELONG(0, 100)); SendMessage(jiggleControl, TBM_SETPOS, TRUE, 50); // Show window ShowWindow(hwnd, nCmdShow); UpdateWindow(hwnd); // Message loop MSG msg; while (GetMessage(&msg, NULL, 0, 0) > 0) { TranslateMessage(&msg); DispatchMessage(&msg); } return msg.wParam; - Assistant