Click here to Skip to main content
15,897,519 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Threaded Concept Question Pin
LighthouseJ3-Feb-05 2:34
LighthouseJ3-Feb-05 2:34 
GeneralRe: Threaded Concept Question Pin
Blake Miller3-Feb-05 6:18
Blake Miller3-Feb-05 6:18 
GeneralDetecting fullscreen apps Pin
Anonymous2-Feb-05 16:51
Anonymous2-Feb-05 16:51 
GeneralTired of this problem Pin
pc_dev2-Feb-05 16:42
pc_dev2-Feb-05 16:42 
GeneralMFC help PLEASE!! Pin
messin182-Feb-05 14:19
messin182-Feb-05 14:19 
GeneralRe: MFC help PLEASE!! Pin
Bob Ciora2-Feb-05 14:31
Bob Ciora2-Feb-05 14:31 
GeneralRe: MFC help PLEASE!! Pin
messin182-Feb-05 18:10
messin182-Feb-05 18:10 
GeneralRe: MFC help PLEASE!! Pin
Bob Ciora3-Feb-05 1:53
Bob Ciora3-Feb-05 1:53 
Ahh, my apologies. I was under the impression that, although you managed to integrate Direct3D with SDI, but couldn't get any of the other widgets or menus working with that (re: your comment about the simple black and white screen). The goal of the class in the article was to provide a CView-derived base class that you can inherit your own View class from and not have to worry about piecing in the DirectX "guts." The 3D support is built in to provide the basis for an SDI application.


Ok, so to clarify the problem, then....is your goal to have a 3D Dialog-based application? Or to have both a window and a dialog rendering 3D at the same time?

For the dialog, this may work (I'm going to try it out myself to check it). How about adding an empty control that encompasses the area within the dialog in which you want to render the 3D? The control is there only as an "anchor" to provide a window to attach Direct3D, since you need an HWND to initialize Direct3D. You can use a simple "static text" control. I'm thinking that you may have to configure it as "transparent" under the control's "Properties".

In your OnInitDialog, then, you can access the control with GetDlgItem. This returns the generic CWnd pointer for the "anchor" item. You can then use the HWND from that control to initialize DirectX within the Dialog. From there on, you should be able to do all of your rendering and presentation.


Also, you mentioned trouble with the Dialog's menus. What sort of trouble were you having? The statement is a bit hazy Frown | :(

Just bouncing ideas Smile | :)

Bob Ciora
General3D in a dialog... Pin
Bob Ciora3-Feb-05 3:33
Bob Ciora3-Feb-05 3:33 
GeneralRe: 3D in a dialog... Pin
Anonymous3-Feb-05 7:53
Anonymous3-Feb-05 7:53 
GeneralRe: 3D in a dialog... Pin
Bob Ciora3-Feb-05 11:31
Bob Ciora3-Feb-05 11:31 
GeneralRe: MFC help PLEASE!! Pin
Rick York3-Feb-05 7:28
mveRick York3-Feb-05 7:28 
GeneralRe: MFC help PLEASE!! Pin
Bob Ciora3-Feb-05 11:35
Bob Ciora3-Feb-05 11:35 
GeneralRe: MFC help PLEASE!! Pin
messin183-Feb-05 17:28
messin183-Feb-05 17:28 
GeneralRe: MFC help PLEASE!! Pin
Bob Ciora4-Feb-05 1:44
Bob Ciora4-Feb-05 1:44 
GeneralRe: MFC help PLEASE!! Pin
messin187-Feb-05 10:38
messin187-Feb-05 10:38 
GeneralUsing hot key to play CD with Hook !?! Pin
TTT812-Feb-05 14:13
TTT812-Feb-05 14:13 
QuestionWhy I was rejected so much with following resume ? Pin
vgrigor12-Feb-05 13:43
vgrigor12-Feb-05 13:43 
AnswerRe: Why I was rejected so much with following resume ? Pin
Bob Ciora2-Feb-05 14:11
Bob Ciora2-Feb-05 14:11 
GeneralRe: Why I was rejected so much with following resume ? Pin
vgrigor12-Feb-05 14:27
vgrigor12-Feb-05 14:27 
GeneralRe: Why I was rejected so much with following resume ? Pin
Anthony_Yio2-Feb-05 23:19
Anthony_Yio2-Feb-05 23:19 
GeneralRe: Why I was rejected so much with following resume ? Pin
vgrigor13-Feb-05 0:06
vgrigor13-Feb-05 0:06 
Generalmath puzzle Pin
ghostpirate72-Feb-05 13:26
ghostpirate72-Feb-05 13:26 
GeneralRe: math puzzle Pin
Bob Ciora2-Feb-05 13:43
Bob Ciora2-Feb-05 13:43 
GeneralPerformance Testing Pin
LighthouseJ2-Feb-05 12:56
LighthouseJ2-Feb-05 12:56 

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.