<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Brauche Hilfe bei der Eingabe!]]></title><description><![CDATA[<p>Hallo,<br />
ich will mit Hilfe der WINAPI eine Eingabe und danach eine Ausgabe eines Wertes(vom typ double) machen, das mit Hilfe von MessageBox und dem Entsprechenden Eingabebefehl, wie geht das?<br />
Brauche schnell eine Antwort, würde mich daher über direkte Lösungen, und keine Links freuen.<br />
Danke <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/143000/brauche-hilfe-bei-der-eingabe</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 01:40:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/143000.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Apr 2006 20:04:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Brauche Hilfe bei der Eingabe! on Tue, 04 Apr 2006 20:04:04 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich will mit Hilfe der WINAPI eine Eingabe und danach eine Ausgabe eines Wertes(vom typ double) machen, das mit Hilfe von MessageBox und dem Entsprechenden Eingabebefehl, wie geht das?<br />
Brauche schnell eine Antwort, würde mich daher über direkte Lösungen, und keine Links freuen.<br />
Danke <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1030609</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1030609</guid><dc:creator><![CDATA[Platy]]></dc:creator><pubDate>Tue, 04 Apr 2006 20:04:04 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe bei der Eingabe! on Tue, 04 Apr 2006 20:07:29 GMT]]></title><description><![CDATA[<p>Direkte Lösungen (gegen Geld) bekommst Du im Forum &quot;Projekte&quot;.</p>
<p>Ansonsten ist das einfachste eine Dialog-Resource anzulegen, welche Du dann mit &quot;DialogBox&quot; anzeigst...<br />
<a href="http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/dialogboxes/usingdialogboxes.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/dialogboxes/usingdialogboxes.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1030610</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1030610</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Tue, 04 Apr 2006 20:07:29 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe bei der Eingabe! on Tue, 04 Apr 2006 20:17:19 GMT]]></title><description><![CDATA[<p>Wie man mit MessageBox umgeht wusste ich schon, jedoch stellt sich noch die Frage, wie ich eine Eingabe Organisieren kann...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1030620</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1030620</guid><dc:creator><![CDATA[Platy]]></dc:creator><pubDate>Tue, 04 Apr 2006 20:17:19 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe bei der Eingabe! on Tue, 04 Apr 2006 20:24:17 GMT]]></title><description><![CDATA[<p>Hab ich in meiner Antwort irgendwas von MessageBox gesagt!?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1030624</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1030624</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Tue, 04 Apr 2006 20:24:17 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe bei der Eingabe! on Tue, 04 Apr 2006 20:29:19 GMT]]></title><description><![CDATA[<p>Ja die zweite Überschrift:<br />
Displaying a Message Box<br />
sagt doch schon alles aus <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1030626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1030626</guid><dc:creator><![CDATA[Platy]]></dc:creator><pubDate>Tue, 04 Apr 2006 20:29:19 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe bei der Eingabe! on Wed, 05 Apr 2006 07:51:29 GMT]]></title><description><![CDATA[<p>Tja, dann solltest du noch ein kleines bisschen weiterlesen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> in den folgenden Abschnitten geht es um vollwertige Dialogboxen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1030750</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1030750</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 05 Apr 2006 07:51:29 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe bei der Eingabe! on Wed, 05 Apr 2006 15:15:14 GMT]]></title><description><![CDATA[<p>Könnte mir mal jemand eine Lösung hinschreiben?<br />
Schließlich kann es ja nicht so viel Code sein, dass ihr euch die Finger abtippt, denn ich glaube ihr wollt auch, wenn ihr eine Frage habt eine Antwort haben und nicht eine Englische Seite von MSDN, wo man sich durch was weiß ich wie viele Links durchhangeln muss.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1031200</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1031200</guid><dc:creator><![CDATA[Platy]]></dc:creator><pubDate>Wed, 05 Apr 2006 15:15:14 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe bei der Eingabe! on Thu, 06 Apr 2006 12:27:46 GMT]]></title><description><![CDATA[<p>double a;</p>
<p>MessageBox(0,a,&quot;Fenstername&quot;,0);</p>
<p>das ist doch was du meinst, oder???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1031904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1031904</guid><dc:creator><![CDATA[gramboler]]></dc:creator><pubDate>Thu, 06 Apr 2006 12:27:46 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe bei der Eingabe! on Thu, 06 Apr 2006 13:57:10 GMT]]></title><description><![CDATA[<p>Mitunter.<br />
Aber selbst das funktioniert nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> .<br />
Ich wollte eigentlich eine auch noch eine Eingabe steuern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1031975</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1031975</guid><dc:creator><![CDATA[Platy]]></dc:creator><pubDate>Thu, 06 Apr 2006 13:57:10 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe bei der Eingabe! on Thu, 06 Apr 2006 14:16:14 GMT]]></title><description><![CDATA[<p>ich denke nicht das hier jemand einfach alles hinklascht. zeig uns deinen ansatz und es wird dir vermutlich geholfen. wenn du eine fertigte lösung willst dann bist du im projekte forum besser aufgehoben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1031992</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1031992</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Thu, 06 Apr 2006 14:16:14 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe bei der Eingabe! on Thu, 06 Apr 2006 14:32:53 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/11467">@Platy</a><br />
MessageBoxen sind so ziemlich das einfachste, was die WinAPI zu bieten hat. Wenn Du schon damit nicht klar kommst, solltest Du Dich vielleicht mal durch ein Tutorial beißen.</p>
<p><a href="http://www.win-api.de/tutorials.php?tutid=2" rel="nofollow">http://www.win-api.de/tutorials.php?tutid=2</a></p>
<p>Eingaben fragst Du mit WM_CHAR oder WM_KEYDOWN/ WM_KEYUP ab.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1032004</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1032004</guid><dc:creator><![CDATA[Elektronix]]></dc:creator><pubDate>Thu, 06 Apr 2006 14:32:53 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe bei der Eingabe! on Thu, 06 Apr 2006 16:57:16 GMT]]></title><description><![CDATA[<p>Platy schrieb:</p>
<blockquote>
<p>Mitunter.<br />
Aber selbst das funktioniert nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> .<br />
Ich wollte eigentlich eine auch noch eine Eingabe steuern.</p>
</blockquote>
<p>--&gt; dann wandle deine double in ein char [] um und gib den aus.<br />
Das funktioniert auf jedenfall</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1032086</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1032086</guid><dc:creator><![CDATA[gramboler offline]]></dc:creator><pubDate>Thu, 06 Apr 2006 16:57:16 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe bei der Eingabe! on Thu, 06 Apr 2006 17:40:40 GMT]]></title><description><![CDATA[<p>Na ja gut hier ist mein Source, wo die Eingaben erfolgen sollen, habe ich gekennzeichnet.</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;gl\gl.h&gt;
#include &lt;gl\glu.h&gt;

HGLRC hglrc=NULL;
HDC hdc=NULL;
HWND hwnd=NULL;
HINSTANCE hInstance;

bool keys[256];
bool active = TRUE;
bool fullscreen = TRUE;

LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);

struct Vertexs{
	float x;
	float y;
	float z;
};

struct Player{
	int points;
	float x;
	float y;
	float z;
	float length;
	float width;
};

Player P1 = { 0, -4.9f,0.0f,0.0f,0.9f,0.3f};
Player P2 = { 0, 4.9f,0.0f,0.0f,0.9f,0.3f}; 
Vertexs speed = {0.05f,0.09f,0.0f};  // Für die Geschwindigkeit des Balles.
Vertexs Ball = {0.0f,0.0f,0.0f};

GLvoid ReSizeGLScene(GLsizei width, GLsizei height)
{
	if (height == 0)
		height = 1;
	glViewport(0,0,width, height);
	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
	gluPerspective(45.0F, (GLfloat)width/(GLfloat)height, 0.1F, 100.0F);
	glMatrixMode(GL_MODELVIEW);
	glLoadIdentity();
}

int InitGL()
{
	glShadeModel(GL_SMOOTH);
	glClearColor(1.0F, 1.0F, 1.0F, 1.0F);
	glClearDepth(1.0F);
	glEnable(GL_DEPTH_TEST);
	glDepthFunc(GL_LEQUAL);
	glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
	return TRUE;
}

int DrawGLScene()
{
	if (Ball.x &gt;= 4.6)
	{
		P1.points += 1;
		speed.x *= -1;  //in die andere Richtung.
	}
	if (Ball.x &lt;= -4.6)
	{
		P2.points += 1;
		speed.x *= -1;
	}
	if (Ball.y &gt;= 4.6)
		speed.y *= -1;
	if (Ball.y &lt;= -4.6)
		speed.y *= -1;
	if (Ball.x &gt;= (4.6 - P2.width) &amp;&amp; Ball.y &lt;= (P2.y + P2.length) &amp;&amp; Ball.y &gt;= (P2.y - P2.length))
		speed.x *= -1;
	if (Ball.x &lt;= (-4.6 + P1.width) &amp;&amp; Ball.y &lt;= (P1.y + P1.length) &amp;&amp; Ball.y &gt;= (P1.y - P2.length))
		speed.x *= -1;

	Ball.x += speed.x;
	Ball.y += speed.y;
	Vertexs topleft = {-4.9f,4.9f,0.0f};
	Vertexs topright = {4.9f,4.9f,0.0f};
	Vertexs bottomleft = {-4.9f,-4.9f,0.0f};
	Vertexs bottomright = {4.9f,-4.9f,0.0f};
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	glLoadIdentity();
	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
	glOrtho(-5.0, +5.0, -5.0, +5.0, -1.0, +1.0);
	glMatrixMode(GL_MODELVIEW);
	glLoadIdentity();
	glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
	glBegin(GL_LINE_STRIP);		//Spielfeldbegrenzung
		glColor3f(0.0f,1.0f,0.0f);
		glVertex3fv(&amp;topright.x);
		glVertex3fv(&amp;topleft.x);
		glVertex3fv(&amp;bottomleft.x);
		glVertex3fv(&amp;bottomright.x);
		glVertex3fv(&amp;topright.x);
	glEnd();

	glBegin(GL_QUADS);		// Viereck für den ersten Spieler
		glColor3f(1.0f,0.0f,0.0f);
		glVertex3f(P1.x + P1.width,P1.y + P1.length,P1.z);
		glVertex3f(P1.x, P1.y + P1.length,P1.z);
		glVertex3f(P1.x,P1.y - P1.length,P1.z);
		glVertex3f(P1.x +P1.width, P1.y - P1.length, P1.z);
	glEnd();

	glBegin(GL_QUADS);		// Viereck für den zweiten Spieler
		glColor3f(0.0f,0.0f,1.0f);
		glVertex3f(P2.x - P2.width,P2.y + P2.length,P2.z);
		glVertex3f(P2.x, P2.y + P2.length,P2.z);
		glVertex3f(P2.x,P2.y - P2.length,P2.z);
		glVertex3f(P2.x - P2.width, P2.y - P2.length, P2.z);
	glEnd();

	GLUquadricObj* pKugel;		//Ball zum Spielen
	pKugel = gluNewQuadric();
	glTranslatef(Ball.x,Ball.y, Ball.z);
	gluQuadricTexture(pKugel, false);
	gluQuadricOrientation(pKugel, GLU_OUTSIDE);
	gluQuadricDrawStyle(pKugel, GL_FILL);
	gluQuadricNormals(pKugel, GLU_FLAT);
	gluQuadricCallback(pKugel, GLU_ERROR, NULL);
	glColor3f(0.0f,0.5f,0.5f);
	gluSphere(pKugel, (double)0.3, (int)18, (int)9);

	glFlush();
	glFinish();
	return TRUE;
}

GLvoid KillGLWindow()
{
	if(fullscreen)
	{
		ChangeDisplaySettings(NULL, 0);
		ShowCursor(TRUE);
	}
	if(hglrc)
	{
		wglMakeCurrent(NULL, NULL);
		wglDeleteContext(hglrc);
	}
	if(hdc &amp;&amp; !ReleaseDC(hwnd, hdc))
	{
		hdc = NULL;
	}
	if(hwnd &amp;&amp; !DestroyWindow(hwnd))
		hwnd = NULL;
	if(!UnregisterClass(&quot;OpenGL&quot;, hInstance))
		hInstance = NULL;
}

bool CreateGLWindow(char* title, int width, int height, int bits, bool fullscreenflag)
{
	GLuint PixelFormat;
	WNDCLASS wc;
	DWORD dwExStyle;
	DWORD dwStyle;
	RECT WindowsRect;
	WindowsRect.left=(long)0;
	WindowsRect.right = (long)width;
	WindowsRect.top = (long)0;
	WindowsRect.bottom = (long)height;
	fullscreen = fullscreenflag;
	hInstance = GetModuleHandle(NULL);
	wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
	wc.lpfnWndProc = (WNDPROC)WndProc;
	wc.cbClsExtra = 0;
	wc.cbWndExtra = 0;
	wc.hInstance = hInstance;
	wc.hIcon = LoadIcon(NULL, IDI_WINLOGO);
	wc.hCursor = LoadCursor(NULL, IDC_ARROW);
	wc.hbrBackground = NULL;
	wc.lpszMenuName = NULL;
	wc.lpszClassName = &quot;OpenGL&quot;;
	RegisterClass(&amp;wc);

	if(fullscreen)
	{
		DEVMODE dmScreenSettings;
		memset(&amp;dmScreenSettings, 0, sizeof(dmScreenSettings));
		dmScreenSettings.dmSize = sizeof(dmScreenSettings);
		dmScreenSettings.dmPelsWidth = width;
		dmScreenSettings.dmPelsHeight = height;
		dmScreenSettings.dmBitsPerPel = bits;
		dmScreenSettings.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT;
		if(ChangeDisplaySettings(&amp;dmScreenSettings, CDS_FULLSCREEN) != DISP_CHANGE_SUCCESSFUL)
		{
			if (MessageBox(NULL, &quot;Vollbildmodus wird nicht unterstützt im Fenstermodus umschalten?&quot;, &quot;OpenGL&quot;, MB_YESNO|MB_ICONEXCLAMATION) == IDYES)
				fullscreen = FALSE;
			else
				return FALSE;
		}
	}
	if (fullscreen)
	{
		dwExStyle = WS_EX_APPWINDOW;
		dwStyle = WS_POPUP;
		ShowCursor(FALSE);
	}
	else
	{
		dwExStyle = WS_EX_APPWINDOW | WS_EX_WINDOWEDGE;
		dwStyle = WS_OVERLAPPEDWINDOW;
	}

	AdjustWindowRectEx(&amp;WindowsRect, dwStyle, FALSE, dwExStyle);

	if (!(hwnd=CreateWindowEx(dwExStyle, &quot;OpenGL&quot;, title, WS_CLIPSIBLINGS | WS_CLIPCHILDREN | dwStyle, NULL,NULL,
		WindowsRect.right - WindowsRect.left, WindowsRect.bottom - WindowsRect.top, NULL, NULL, hInstance, NULL)))
	{
		KillGLWindow();
		MessageBox(NULL, &quot;Fenster konnte nicht erstellt werden&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
		return FALSE;
	}

	PIXELFORMATDESCRIPTOR pfd = {
		sizeof(PIXELFORMATDESCRIPTOR),
		1,
		PFD_DRAW_TO_WINDOW | PFD_DRAW_TO_BITMAP | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER,
		PFD_TYPE_RGBA,
		bits,
		0,0,0,0,0,0,0,0,0,0,0,0,0,
		16,
		0,0,
		0,
		0,0,0,0};
	if(!(hdc = GetDC(hwnd))) 
		MessageBox(NULL, &quot;Fehler beim hdc = GetDC&quot;, &quot;Fehler&quot;, MB_OK| MB_ICONINFORMATION);
	PixelFormat = ChoosePixelFormat(hdc, &amp;pfd);
	SetPixelFormat(hdc, PixelFormat, &amp;pfd);
	hglrc = wglCreateContext(hdc);
	wglMakeCurrent(hdc, hglrc);
	ShowWindow(hwnd, SW_SHOW);
	SetForegroundWindow(hwnd);
	SetFocus(hwnd);
	ReSizeGLScene(width, height);
	InitGL();
	return TRUE;
}

LRESULT CALLBACK WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
	switch(uMsg)
	{
	case WM_ACTIVATE:
		{
			if(!HIWORD(wParam))
				active = TRUE;
			else
				active = FALSE;
			return 0;
		}
	case WM_SYSCOMMAND:
		{
			switch(wParam)
			{
			case SC_SCREENSAVE:
			case SC_MONITORPOWER:
				return 0;
			}
			break;
		}
	case WM_CLOSE:
		{
			PostQuitMessage(0);
			return 0;
		}
	case WM_KEYDOWN:
		{
			keys[wParam] = TRUE;
			return 0;
		}
	case WM_KEYUP:
		{
			keys[wParam] = FALSE;
			return 0;
		}
	case WM_SIZE:
		{
			ReSizeGLScene(LOWORD(lParam), HIWORD(wParam));
			return 0;
		}
	}

	return DefWindowProc(hwnd, uMsg, wParam, lParam);
}

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	MSG msg;
	bool done = FALSE;
	if(MessageBox(NULL, &quot;Soll im Vollbildmodus gestartet werden?&quot;, &quot;Vollbildmodus&quot;, MB_YESNO | MB_ICONQUESTION) == IDNO)
		fullscreen = FALSE;
	//MessageBox(NULL,&quot;Wie viele Punkte, muss der Sieger haben?&quot;, &quot;Siegbedingungen&quot;, MB_OK | MB_ICONQUESTION);  // Hier soll eine Eingabe erfolgen.
	// Der restliche Source, der hier hin gehört folgt noch, wenn die Eingabe funktioniert.
	//MessageBox(NULL,&quot;Bitte geben sie den Schwirigkeitsgrad an.  (l,m,s)&quot;, &quot;Schwierigkeitsgrad&quot;);   // Noch eine Eingabe...
	if(!(CreateGLWindow(&quot;Das Fenster&quot;, 640, 480, 32, fullscreen)))
		return 0;

	while (!done)
	{
		if (PeekMessage(&amp;msg, NULL, 0,0,PM_REMOVE))
		{
			if(msg.message==WM_QUIT)
				done = TRUE;
			else
			{
				TranslateMessage(&amp;msg);
				DispatchMessage(&amp;msg);
			}
		}
		else
		{
			if(active)
			{
				if(keys[VK_ESCAPE])
					done = TRUE;
				else
				{
					DrawGLScene();
					SwapBuffers(hdc);
				}
			}
			if(keys[VK_F1])
			{
				keys[VK_F1] = FALSE;
				KillGLWindow();
				fullscreen =! fullscreen;
				if(!CreateGLWindow(&quot;Das Fenster&quot;, 640,480,32,fullscreen))
					return 0;
			}
			if (keys['W'])
			{
				keys['W']=false;
				if ((P1.y + 0.3f) &gt;= (4.9f - P1.length))
					P1.y = 4.9f - P1.length;
				else
					P1.y += 0.3f;
			}
			if (keys['S'])
			{
				keys['S']=false;
				if ((P1.y - 0.3f) &lt;= (-4.9f + P1.length))
					P1.y = -4.9f + P1.length;
				else
					P1.y -= 0.3f;
			}
			if (keys[VK_DOWN])
			{
				keys[VK_DOWN]=false;
				if ((P2.y - 0.3f) &lt;= (-4.9f + P2.length))
					P2.y = -4.9f + P2.length;
				else
					P2.y -= 0.3f;
			}
			if (keys[VK_UP])
			{
				keys[VK_UP]=false;
				if ((P2.y + 0.3f) &gt;= (4.9f - P2.length))
					P2.y = 4.9f - P2.length;
				else
					P2.y += 0.3f;
			}
		}
		if (P1.points &gt;= 10)
		{
			MessageBox(NULL, &quot;Sieger ist Spieler eins&quot;, &quot;Sieger&quot;, MB_OK);
			break;
		}
		if (P2.points &gt;= 10)
		{
			MessageBox(NULL, &quot;Sieger ist Spieler zwei&quot;, &quot;Sieger&quot;, MB_OK);
			break;
		}
	}
	KillGLWindow();
	return (msg.wParam);
}
</code></pre>
<p>Hoffentlich kann mir jetzt einer helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1032108</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1032108</guid><dc:creator><![CDATA[Platy]]></dc:creator><pubDate>Thu, 06 Apr 2006 17:40:40 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche Hilfe bei der Eingabe! on Fri, 07 Apr 2006 06:37:31 GMT]]></title><description><![CDATA[<p>Dann solltest du wohl fast einen richtigen Dialog machen, den du dann mit DialogBox startest. Dann kannst du dort in der DlgProc Tastendrücke abfängen, oder Buttons zum auswählen anbieten...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1032318</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1032318</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 07 Apr 2006 06:37:31 GMT</pubDate></item></channel></rss>