<?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[Tabstops]]></title><description><![CDATA[<p>Ich weiß, das Thema gabs schon x-mal. Aber irgendwie krieg ich das nicht implementiert. Ich weiß, es geht irgendwie mit WS_TABSTOP etc...<br />
Könnte da jemand mal n Beispiel geben?<br />
zB: den Rohcode unten mit Tabstops ergänzen</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;

/*  Declare Windows procedure  */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

/*  Make the class name into a global variable  */
char szClassName[ ] = &quot;WindowsApp&quot;;

int WINAPI WinMain (HINSTANCE hThisInstance,
                    HINSTANCE hPrevInstance,
                    LPSTR lpszArgument,
                    int nFunsterStil)

{
    HWND hwnd;               /* This is the handle for our window */
    MSG messages;            /* Here messages to the application are saved */
    WNDCLASSEX wincl;        /* Data structure for the windowclass */

    /* The Window structure */
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */
    wincl.style = CS_DBLCLKS;                 /* Catch double-clicks */
    wincl.cbSize = sizeof (WNDCLASSEX);

    /* Use default icon and mouse-pointer */
    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
    wincl.lpszMenuName = NULL;                 /* No menu */
    wincl.cbClsExtra = 0;                      /* No extra bytes after the window class */
    wincl.cbWndExtra = 0;                      /* structure or the window instance */
    /* Use Windows's default color as the background of the window */
    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

    /* Register the window class, and if it fails quit the program */
    if (!RegisterClassEx (&amp;wincl))
        return 0;

    /* The class is registered, let's create the program*/
    hwnd = CreateWindowEx (
           0,                   /* Extended possibilites for variation */
           szClassName,         /* Classname */
           &quot;Windows App&quot;,       /* Title Text */
           WS_OVERLAPPEDWINDOW, /* default window */
           CW_USEDEFAULT,       /* Windows decides the position */
           CW_USEDEFAULT,       /* where the window ends up on the screen */
           140,                 /* The programs width */
           140,                 /* and height in pixels */
           HWND_DESKTOP,        /* The window is a child-window to desktop */
           NULL,                /* No menu */
           hThisInstance,       /* Program Instance handler */
           NULL                 /* No Window Creation data */
           );

    /* Make the window visible on the screen */
    ShowWindow (hwnd, nFunsterStil);

    /* Run the message loop. It will run until GetMessage() returns 0 */
    while (GetMessage (&amp;messages, NULL, 0, 0))
    {
        /* Translate virtual-key messages into character messages */
        TranslateMessage(&amp;messages);
        /* Send message to WindowProcedure */
        DispatchMessage(&amp;messages);
    }

    /* The program return-value is 0 - The value that PostQuitMessage() gave */
    return messages.wParam;
}

/*  This function is called by the Windows function DispatchMessage()  */

LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    static HWND edEdit1, edEdit2;

    switch (message)                  /* handle the messages */
    {
        case WM_CREATE:
        {
            edEdit1 = CreateWindowEx (WS_EX_CLIENTEDGE, &quot;edit&quot;, &quot;&quot;, WS_CHILD | WS_VISIBLE,
                                      20, 20, 100, 23, hwnd, NULL, 
                                      ((LPCREATESTRUCT) lParam) -&gt;hInstance, NULL);
            edEdit2 = CreateWindowEx (WS_EX_CLIENTEDGE, &quot;edit&quot;, &quot;&quot;, WS_CHILD | WS_VISIBLE,
                                      20, 60, 100, 23, hwnd, NULL, 
                                      ((LPCREATESTRUCT) lParam) -&gt;hInstance, NULL);
            break;
        }
        case WM_DESTROY:
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;
        default:                      /* for messages that we don't deal with */
            return DefWindowProc (hwnd, message, wParam, lParam);
    }

    return 0;
}
</code></pre>
<p>Wär nett, ich häng schon ewig dran und find keine Lösung!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/93029/tabstops</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 23:46:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/93029.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Nov 2004 13:14:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tabstops on Thu, 25 Nov 2004 13:14:22 GMT]]></title><description><![CDATA[<p>Ich weiß, das Thema gabs schon x-mal. Aber irgendwie krieg ich das nicht implementiert. Ich weiß, es geht irgendwie mit WS_TABSTOP etc...<br />
Könnte da jemand mal n Beispiel geben?<br />
zB: den Rohcode unten mit Tabstops ergänzen</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;

/*  Declare Windows procedure  */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);

/*  Make the class name into a global variable  */
char szClassName[ ] = &quot;WindowsApp&quot;;

int WINAPI WinMain (HINSTANCE hThisInstance,
                    HINSTANCE hPrevInstance,
                    LPSTR lpszArgument,
                    int nFunsterStil)

{
    HWND hwnd;               /* This is the handle for our window */
    MSG messages;            /* Here messages to the application are saved */
    WNDCLASSEX wincl;        /* Data structure for the windowclass */

    /* The Window structure */
    wincl.hInstance = hThisInstance;
    wincl.lpszClassName = szClassName;
    wincl.lpfnWndProc = WindowProcedure;      /* This function is called by windows */
    wincl.style = CS_DBLCLKS;                 /* Catch double-clicks */
    wincl.cbSize = sizeof (WNDCLASSEX);

    /* Use default icon and mouse-pointer */
    wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
    wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
    wincl.lpszMenuName = NULL;                 /* No menu */
    wincl.cbClsExtra = 0;                      /* No extra bytes after the window class */
    wincl.cbWndExtra = 0;                      /* structure or the window instance */
    /* Use Windows's default color as the background of the window */
    wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

    /* Register the window class, and if it fails quit the program */
    if (!RegisterClassEx (&amp;wincl))
        return 0;

    /* The class is registered, let's create the program*/
    hwnd = CreateWindowEx (
           0,                   /* Extended possibilites for variation */
           szClassName,         /* Classname */
           &quot;Windows App&quot;,       /* Title Text */
           WS_OVERLAPPEDWINDOW, /* default window */
           CW_USEDEFAULT,       /* Windows decides the position */
           CW_USEDEFAULT,       /* where the window ends up on the screen */
           140,                 /* The programs width */
           140,                 /* and height in pixels */
           HWND_DESKTOP,        /* The window is a child-window to desktop */
           NULL,                /* No menu */
           hThisInstance,       /* Program Instance handler */
           NULL                 /* No Window Creation data */
           );

    /* Make the window visible on the screen */
    ShowWindow (hwnd, nFunsterStil);

    /* Run the message loop. It will run until GetMessage() returns 0 */
    while (GetMessage (&amp;messages, NULL, 0, 0))
    {
        /* Translate virtual-key messages into character messages */
        TranslateMessage(&amp;messages);
        /* Send message to WindowProcedure */
        DispatchMessage(&amp;messages);
    }

    /* The program return-value is 0 - The value that PostQuitMessage() gave */
    return messages.wParam;
}

/*  This function is called by the Windows function DispatchMessage()  */

LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
    static HWND edEdit1, edEdit2;

    switch (message)                  /* handle the messages */
    {
        case WM_CREATE:
        {
            edEdit1 = CreateWindowEx (WS_EX_CLIENTEDGE, &quot;edit&quot;, &quot;&quot;, WS_CHILD | WS_VISIBLE,
                                      20, 20, 100, 23, hwnd, NULL, 
                                      ((LPCREATESTRUCT) lParam) -&gt;hInstance, NULL);
            edEdit2 = CreateWindowEx (WS_EX_CLIENTEDGE, &quot;edit&quot;, &quot;&quot;, WS_CHILD | WS_VISIBLE,
                                      20, 60, 100, 23, hwnd, NULL, 
                                      ((LPCREATESTRUCT) lParam) -&gt;hInstance, NULL);
            break;
        }
        case WM_DESTROY:
            PostQuitMessage (0);       /* send a WM_QUIT to the message queue */
            break;
        default:                      /* for messages that we don't deal with */
            return DefWindowProc (hwnd, message, wParam, lParam);
    }

    return 0;
}
</code></pre>
<p>Wär nett, ich häng schon ewig dran und find keine Lösung!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/658932</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/658932</guid><dc:creator><![CDATA[N00Bie]]></dc:creator><pubDate>Thu, 25 Nov 2004 13:14:22 GMT</pubDate></item><item><title><![CDATA[Reply to Tabstops on Thu, 25 Nov 2004 13:15:40 GMT]]></title><description><![CDATA[<p>Suchfunktion mit dem Suchwort &quot;IsDialogMessage&quot; benutzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/658934</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/658934</guid><dc:creator><![CDATA[IsDialogMessage]]></dc:creator><pubDate>Thu, 25 Nov 2004 13:15:40 GMT</pubDate></item><item><title><![CDATA[Reply to Tabstops on Thu, 25 Nov 2004 13:41:33 GMT]]></title><description><![CDATA[<p>hab ich schon alle Beiträge gelesen, Theorie is ja gut, aber es funzt nicht im Code! Bitte schreibs doch einfach oben rein... <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="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/658973</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/658973</guid><dc:creator><![CDATA[N00Bie]]></dc:creator><pubDate>Thu, 25 Nov 2004 13:41:33 GMT</pubDate></item><item><title><![CDATA[Reply to Tabstops on Thu, 25 Nov 2004 13:49:51 GMT]]></title><description><![CDATA[<p>Füge bei den Edits noch das Flag WS_TABSTOP hinzu. Und dann fügst du noch IsDialogMessage zur Nachrichtenschleife hinzu.</p>
<p>Das wird doch wohl für dich zu schaffen sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/658979</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/658979</guid><dc:creator><![CDATA[du noooooob]]></dc:creator><pubDate>Thu, 25 Nov 2004 13:49:51 GMT</pubDate></item><item><title><![CDATA[Reply to Tabstops on Fri, 26 Nov 2004 17:00:58 GMT]]></title><description><![CDATA[<p>So geht's:</p>
<pre><code class="language-cpp">while(GetMessage(&amp;msg, NULL, 0, 0))
{
	if(!TranslateAccelerator (hMain, hAccel, &amp;msg) &amp;&amp; !IsDialogMessage(hMain, &amp;msg))
	{
			TranslateMessage(&amp;msg);
			DispatchMessage(&amp;msg);
	}
}
</code></pre>
<p>~code_pilot <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/660021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/660021</guid><dc:creator><![CDATA[code_pilot]]></dc:creator><pubDate>Fri, 26 Nov 2004 17:00:58 GMT</pubDate></item><item><title><![CDATA[Reply to Tabstops on Fri, 26 Nov 2004 18:44:55 GMT]]></title><description><![CDATA[<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/660091</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/660091</guid><dc:creator><![CDATA[N00Bie]]></dc:creator><pubDate>Fri, 26 Nov 2004 18:44:55 GMT</pubDate></item></channel></rss>