Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General.NET version problem Pin
Nemok23-May-04 4:53
Nemok23-May-04 4:53 
QuestionHow do I Pin
KORCARI23-May-04 3:53
KORCARI23-May-04 3:53 
AnswerRe: How do I Pin
Ravi Bhavnani23-May-04 4:29
professionalRavi Bhavnani23-May-04 4:29 
GeneralShow Desktop Pin
Abin23-May-04 2:32
Abin23-May-04 2:32 
GeneralRe: Show Desktop Pin
User 665823-May-04 3:38
User 665823-May-04 3:38 
GeneralRe: Show Desktop Pin
Diddy26-May-04 2:36
Diddy26-May-04 2:36 
Generalskinned gui controls in directx Pin
Chooikw22-May-04 23:14
Chooikw22-May-04 23:14 
GeneralRe: skinned gui controls in directx Pin
Antti Keskinen23-May-04 0:23
Antti Keskinen23-May-04 0:23 
There are no skinned UI controls in DirectX. Everything is completely drawn and operated by you.

First, design the controls using, for example, a drawing or a 3D-modelling program (a picture, for example). Then use DirectDraw or Direct3D (where appropriate) to display this drawing/scene on the display.

Naturally, in order for this to work, you must also set up an event-map for the display. In DirectX, this event-map is also created manually. You can only monitor for events fired on input devices (such as a mouse click), and then use a reference drawing to determine if the mouse was over an object/piece-of-drawing that causes some event.

For a compete example on the matter, see a set of GameDev.Net hosted articles. A link to the article list is provided here. See the first topic "Implementing a GUI using C++ and DirectX". Alternatively, use this link to download the entire documentation as an RTF file for off-line reading.

The article writer assumes that you have a solid basis in C++, Win32 API and the event-driven system that operates behind Windows OS Family. If any of these is lacking, you'll find the article series difficult to understand.

Also, for future reference, for all your game programming needs, first consult the VERY comprehensive article list of GameDev.Net.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralOfficeaddin IDTExtensibility2 Pin
shinay22-May-04 22:33
shinay22-May-04 22:33 
GeneralRe: Officeaddin IDTExtensibility2 Pin
shinay22-May-04 22:34
shinay22-May-04 22:34 
QuestionXML info from web 2 richtextbox ? Pin
MrXs22-May-04 21:30
MrXs22-May-04 21:30 
AnswerRe: XML info from web 2 richtextbox ? Pin
Andrew Quinn AUS24-May-04 0:59
Andrew Quinn AUS24-May-04 0:59 
GeneralHelp:CallBack function Pin
curiosity537422-May-04 21:01
curiosity537422-May-04 21:01 
GeneralRe: Help:CallBack function Pin
John R. Shaw23-May-04 2:20
John R. Shaw23-May-04 2:20 
GeneralRe: Help:CallBack function Pin
Member 42102523-May-04 7:57
Member 42102523-May-04 7:57 
GeneralRe: Help:CallBack function Pin
Blake Miller25-May-04 15:38
Blake Miller25-May-04 15:38 
GeneralKeyboard and Mouse Hooks Pin
User 1278222-May-04 19:27
User 1278222-May-04 19:27 
GeneralRe: Keyboard and Mouse Hooks Pin
bigBA24-May-04 1:49
bigBA24-May-04 1:49 
GeneralRe: Keyboard and Mouse Hooks Pin
User 1278224-May-04 5:11
User 1278224-May-04 5:11 
GeneralTooltips on a treeview Pin
Tim Smith22-May-04 17:07
Tim Smith22-May-04 17:07 
GeneralRe: I HATE VCL (Borland) Pin
Tim Smith23-May-04 8:33
Tim Smith23-May-04 8:33 
GeneralDialog Bars in a Dialog Based App Pin
Tyrus18222-May-04 15:56
Tyrus18222-May-04 15:56 
GeneralMFC: Creating and opening a CFormView from the main one Pin
kfaday22-May-04 12:53
kfaday22-May-04 12:53 
GeneralRe: MFC: Creating and opening a CFormView from the main one Pin
JohnnyG22-May-04 16:14
JohnnyG22-May-04 16:14 
GeneralRe: MFC: Creating and opening a CFormView from the main one Pin
kfaday22-May-04 16:33
kfaday22-May-04 16:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.