http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: window controls



Well I would if it was that simple but if you define UNICODE TCHAR is short
int. I solved it by not converting at all. I used SetWindowTextA.

Idahosa Edokpayi

-----Original Message-----
From: gameprogrammer-owner@gameprogrammer.com
[mailto:gameprogrammer-owner@gameprogrammer.com]On Behalf Of Pierre
Terdiman
Sent: Wednesday, January 05, 2000 12:26 AM
To: gameprogrammer@gameprogrammer.com
Subject: Re: window controls


I answer that one because Fulbert only coded the Windows related stuff,
I'm the one who gave him the GL string...

...and I just don't understand your problem.
TCHAR is a char, why don't you just cast the GL string pointer?!


-----Message d'origine-----
De : Idahosa I. Edokpayi <stealth_ninja@geocities.com>
À : gameprogrammer@gameprogrammer.com <gameprogrammer@gameprogrammer.com>
Date : mercredi 5 janvier 2000 07:10
Objet : RE: window controls


>But that ends up using a SetWindowText? Good :) by the way, what did you do
>about about OpenGL returning unsigned char strings? I can never figure out
>what to do in simple cases like that. There does not seem to be a quick
easy
>way to go to a TCHAR string...
>
>Idahosa Edokpayi
>
>-----Original Message-----
>From: gameprogrammer-owner@gameprogrammer.com
>[mailto:gameprogrammer-owner@gameprogrammer.com]On Behalf Of Fulbert
>Boussaton
>Sent: Tuesday, January 04, 2000 7:56 PM
>To: gameprogrammer@gameprogrammer.com
>Subject: Re: window controls
>
>
>Well, no. I recoded the concept of dialog-box and control, so my controls
>are child window of a main window (say its class is called DialogTemplate).
>Every control are based on a common class called say, Control (these are
not
>the actual names I used in the current project I work on, but there's no
way
>to complicate my answer with the true names which are more obscure...), and
>are simply child window of the main window. The DialogTemplate and Control
>classes are derived from a common class, call it Window ( :) ), so the
>methods to allow the dialog-box navigation through the Control list are
>implemented in the DialogTemplate class (you know, the WS_TABSTOP, the
>WS_GROUP etc...) because I no longer use the Windows dialog-boxes... my
code
>look like this:
>
>DialogTemplate*    tpt;
>
>Static*    ctrl    = tpt->FromId(IDC_STATIC_TEXT);
>//Retrieve the control of id IDC_STATIC_TEXT, which is a first-child window
>of the DialogTemplate object
>if (ctrl)     ctrl->SetText(String("Some Vendor"));
>//The method Window::SetText use the ::SetWindowText Win32 function (for
the
>static-box)
>
>Fulbert Boussaton
>
>
>----- Original Message -----
>From: Idahosa I. Edokpayi <stealth_ninja@geocities.com>
>To: <gameprogrammer@gameprogrammer.com>
>Sent: Tuesday, January 04, 2000 5:28 PM
>Subject: RE: window controls
>
>
>> Did you do that like this:
>>
>> HWND hwndText = GetDlgItem( hDlg, IDC_STATIC_TEXT );
>> SetWindowText( hwndText, _T("Some Vendor") );
>>
>> -----Original Message-----
>> From: gameprogrammer-owner@gameprogrammer.com
>> [mailto:gameprogrammer-owner@gameprogrammer.com]On Behalf Of Fulbert
>> Boussaton
>> Sent: Monday, January 03, 2000 3:12 AM
>> To: gameprogrammer@gameprogrammer.com
>> Subject: Re: window controls
>>
>>
>> Here is an exemple, with two static for the vendor and renderer strings,
>and
>> one multi-line edit-box for the extensions, but you can make some textout
>> operations in a custom window too. I think these are the simplest ways...
>>
>> Hope this helps.
>>
>> Fulbert Boussaton (The file isn't too large?)
>>
>>
>> =================================================================
>> The GameProgrammer.Com mailing list is for the open discussion
>> of any topic related to the art, science, and business of
>> programming games. This list is especially tolerant of beginners.
>> We were all beginners once
>>
>> To SUBSCRIBE or UNSUBSCRIBE please visit:
>> http://gameprogrammer.com/mailinglist.html
>>
>
>=================================================================
>The GameProgrammer.Com mailing list is for the open discussion
>of any topic related to the art, science, and business of
>programming games. This list is especially tolerant of beginners.
>We were all beginners once
>
>To SUBSCRIBE or UNSUBSCRIBE please visit:
>http://gameprogrammer.com/mailinglist.html
>
>=================================================================
>The GameProgrammer.Com mailing list is for the open discussion
>of any topic related to the art, science, and business of
>programming games. This list is especially tolerant of beginners.
>We were all beginners once
>
>To SUBSCRIBE or UNSUBSCRIBE please visit:
>http://gameprogrammer.com/mailinglist.html
>

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html




  • References: