| View previous topic :: View next topic |
| Author |
Message |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Sat Jan 12, 2008 7:02 pm Post subject: c++ - How do i do forms and buttons and stuff |
|
|
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 |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sat Jan 12, 2008 7:05 pm Post subject: |
|
|
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 |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sat Jan 12, 2008 7:08 pm Post subject: |
|
|
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.
| Description: |
|
| Filesize: |
122.69 KB |
| Viewed: |
6478 Time(s) |

|
_________________
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sat Jan 12, 2008 7:19 pm Post subject: |
|
|
brush effects, plus photoshop image effect filters. i eventually get to that background.
_________________
|
|
| Back to top |
|
 |
NINTENDO Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Nov 2007 Posts: 1371
|
Posted: Sat Jan 12, 2008 7:20 pm Post subject: |
|
|
| lurc wrote: | | brush effects, plus photoshop image effect filters. i eventually get to that background. | ok.
_________________
Intel over amd yes. |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
|
| Back to top |
|
 |
killersamurai Expert Cheater
Reputation: 0
Joined: 10 Sep 2007 Posts: 197 Location: Colorado
|
Posted: Sat Jan 12, 2008 9:25 pm Post subject: |
|
|
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 |
|
 |
zonfirepker Grandmaster Cheater Supreme
Reputation: 0
Joined: 15 Oct 2007 Posts: 1080 Location: Wouldn't you like to know?
|
Posted: Sat Jan 12, 2008 10:04 pm Post subject: |
|
|
u can do it with a workshop to
_________________
| EasSidezz wrote: | | MD5's Aren't salted. |
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sat Jan 12, 2008 10:12 pm Post subject: |
|
|
| You could always take the lazy way out and use resources as well.
|
|
| Back to top |
|
 |
zonfirepker Grandmaster Cheater Supreme
Reputation: 0
Joined: 15 Oct 2007 Posts: 1080 Location: Wouldn't you like to know?
|
Posted: Sat Jan 12, 2008 10:14 pm Post subject: |
|
|
thats what i like to do the only prob is u have to buy some stuff first
_________________
| EasSidezz wrote: | | MD5's Aren't salted. |
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sat Jan 12, 2008 10:16 pm Post subject: |
|
|
| no, no you don't.
|
|
| Back to top |
|
 |
zonfirepker Grandmaster Cheater Supreme
Reputation: 0
Joined: 15 Oct 2007 Posts: 1080 Location: Wouldn't you like to know?
|
Posted: Sat Jan 12, 2008 10:35 pm Post subject: |
|
|
o well it was only $10
_________________
| EasSidezz wrote: | | MD5's Aren't salted. |
|
|
| Back to top |
|
 |
zonfirepker Grandmaster Cheater Supreme
Reputation: 0
Joined: 15 Oct 2007 Posts: 1080 Location: Wouldn't you like to know?
|
Posted: Sat Jan 12, 2008 10:35 pm Post subject: |
|
|
o well it was only $10
_________________
| EasSidezz wrote: | | MD5's Aren't salted. |
|
|
| Back to top |
|
 |
|