Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


c++ - How do i do forms and buttons and stuff
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sat Jan 12, 2008 7:02 pm    Post subject: c++ - How do i do forms and buttons and stuff Reply with quote

In c++ do i have to code the form manually?

Also how do i create a basic form with a button?

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sat Jan 12, 2008 7:05 pm    Post subject: Reply with quote

dude, u stole my sig that I made. at least give credits, u didnt even ask if u cud use it.


if ur using an IDE like Visual Studio 2005/2008 you can use .NET instead of Native coding for easier forms (New Project->Visual C++ ->CLR->Windows Form App)

then its all drag and drop from there on

_________________
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sat Jan 12, 2008 7:07 pm    Post subject: Reply with quote

lurc wrote:
dude, u stole my sig that I made. at least give credits, u didnt even ask if u cud use it.


if ur using an IDE like Visual Studio 2005/2008 you can use .NET instead of Native coding for easier forms (New Project->Visual C++ ->CLR->Windows Form App)

then its all drag and drop from there on

U made it? Very Happy

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sat Jan 12, 2008 7:08 pm    Post subject: Reply with quote

yes i did.. i can show u a screenshot of my photoshop file if u need.

edit: here attached proof, now fuckin take it out of ur sig asshole
your even using my image source which is my photobucket account retard.



proof.PNG
 Description:
proof.
 Filesize:  122.69 KB
 Viewed:  6478 Time(s)

proof.PNG



_________________
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sat Jan 12, 2008 7:17 pm    Post subject: Reply with quote

lurc wrote:
yes i did.. i can show u a screenshot of my photoshop file if u need.

edit: here attached proof, now fuckin take it out of ur sig asshole
your even using my image source which is my photobucket account retard.

How did u made the background Razz

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sat Jan 12, 2008 7:19 pm    Post subject: Reply with quote

brush effects, plus photoshop image effect filters. i eventually get to that background.
_________________
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Sat Jan 12, 2008 7:20 pm    Post subject: Reply with quote

lurc wrote:
brush effects, plus photoshop image effect filters. i eventually get to that background.
ok.
_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Jan 12, 2008 9:14 pm    Post subject: Reply with quote

http://www.winprog.org/tutorial/

Everything you need is there.
Back to top
View user's profile Send private message
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Sat Jan 12, 2008 9:25 pm    Post subject: Reply with quote

I recommend not doing managed c++ (c++ .net). Use c# instead. As for creating windows and buttons, use CreateWindow() or CreateWindowEx(). It's not only that but you have to register it. For a buttons, just use BUTTON for the class name.

Here is a way to create a window and a button. It will also show a message when the button is clicked.
Code:

#include <windows.h>
#define IDI_BUTTON_TEST 101

wchar_t g_ClassName[] = L"WindowClass1";
LRESULT CALLBACK WndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
   WNDCLASSEX wcx = {
      sizeof(WNDCLASSEX),
      CS_HREDRAW | CS_VREDRAW,
      WndProc,
      0, 0,
      hInstance,
      LoadIcon(NULL, IDI_APPLICATION),
      LoadCursor(NULL, IDC_ARROW),
      (HBRUSH)COLOR_BTNSHADOW,
      NULL,
      g_ClassName,
      LoadIcon(NULL, IDI_APPLICATION)
   };

   if (!RegisterClassEx(&wcx))
      return 0;

   HWND hWnd = CreateWindowEx(
      NULL,
      g_ClassName,
      L"Test",
      WS_SYSMENU | WS_CAPTION,
      CW_USEDEFAULT, CW_USEDEFAULT,
      100, 100,
      NULL,
      NULL,
      hInstance,
      NULL);

   if (hWnd == 0)
      return 0;

   ShowWindow(hWnd, SW_SHOWNORMAL);
   UpdateWindow(hWnd);

   MSG Msg;

   while (GetMessage(&Msg, 0, 0, 0))
   {
      TranslateMessage(&Msg);
      DispatchMessage(&Msg);
   }
   return 0;
}

LRESULT CALLBACK WndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
   switch (Msg)
   {
   case WM_DESTROY:
      PostQuitMessage(0);
      break;
   case WM_CREATE:
      {
         HWND hButton = CreateWindowEx(
            NULL,
            L"BUTTON",
            L"Test",
            WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON,
            35, 10,
            50, 50,
            hWnd,
            (HMENU)IDI_BUTTON_TEST,
            NULL,
            NULL);

      }
      break;
   case WM_COMMAND:
      {
         if (HIWORD(wParam) == BN_CLICKED)
         {
            switch (LOWORD(wParam))
            {
            case IDI_BUTTON_TEST:
               MessageBox(hWnd, L"You clicked me!!!", L"Click", MB_OK | MB_ICONEXCLAMATION);
            }
         }
      }
      break;
   default:
      return DefWindowProc(hWnd, Msg, wParam, lParam);
   }
   return 0;
}


If you don't want to worry about this, you can always use the MFC.
Back to top
View user's profile Send private message
zonfirepker
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Oct 2007
Posts: 1080
Location: Wouldn't you like to know?

PostPosted: Sat Jan 12, 2008 10:04 pm    Post subject: Reply with quote

u can do it with a workshop to
_________________
EasSidezz wrote:
MD5's Aren't salted.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Jan 12, 2008 10:12 pm    Post subject: Reply with quote

You could always take the lazy way out and use resources as well.
Back to top
View user's profile Send private message
zonfirepker
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Oct 2007
Posts: 1080
Location: Wouldn't you like to know?

PostPosted: Sat Jan 12, 2008 10:14 pm    Post subject: Reply with quote

thats what i like to do Smile the only prob is u have to buy some stuff first
_________________
EasSidezz wrote:
MD5's Aren't salted.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Jan 12, 2008 10:16 pm    Post subject: Reply with quote

no, no you don't.
Back to top
View user's profile Send private message
zonfirepker
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Oct 2007
Posts: 1080
Location: Wouldn't you like to know?

PostPosted: Sat Jan 12, 2008 10:35 pm    Post subject: Reply with quote

o well it was only $10
_________________
EasSidezz wrote:
MD5's Aren't salted.
Back to top
View user's profile Send private message
zonfirepker
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Oct 2007
Posts: 1080
Location: Wouldn't you like to know?

PostPosted: Sat Jan 12, 2008 10:35 pm    Post subject: Reply with quote

o well it was only $10
_________________
EasSidezz wrote:
MD5's Aren't salted.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites