Click here to Skip to main content
15,908,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Image flickers when Invalidate() is called. Pin
jazzkiller3-Feb-05 6:11
jazzkiller3-Feb-05 6:11 
GeneralRe: Image flickers when Invalidate() is called. Pin
Christopher Lloyd3-Feb-05 7:14
Christopher Lloyd3-Feb-05 7:14 
GeneralRe: Image flickers when Invalidate() is called. Pin
jazzkiller3-Feb-05 10:05
jazzkiller3-Feb-05 10:05 
GeneralRe: Image flickers when Invalidate() is called. Pin
Christopher Lloyd3-Feb-05 10:29
Christopher Lloyd3-Feb-05 10:29 
GeneralGET BITMAP Pin
kedar.dave2-Feb-05 19:17
kedar.dave2-Feb-05 19:17 
QuestionHow to change the scan code while posting WM_KEYDOWN and WM_KEYUP messages? Pin
ledallam2-Feb-05 17:59
ledallam2-Feb-05 17:59 
AnswerRe: How to change the scan code while posting WM_KEYDOWN and WM_KEYUP messages? Pin
Christopher Lloyd3-Feb-05 1:23
Christopher Lloyd3-Feb-05 1:23 
GeneralRe: How to change the scan code while posting WM_KEYDOWN and WM_KEYUP messages? Pin
Blake Miller3-Feb-05 6:03
Blake Miller3-Feb-05 6:03 
QuestionHow to corelate VC++ data to EXCElL sheet Pin
Member 9009872-Feb-05 17:56
Member 9009872-Feb-05 17:56 
AnswerRe: How to corelate VC++ data to EXCElL sheet Pin
tigron2-Feb-05 18:28
tigron2-Feb-05 18:28 
AnswerRe: How to corelate VC++ data to EXCElL sheet Pin
David Crow3-Feb-05 3:12
David Crow3-Feb-05 3:12 
GeneralThreaded Concept Question Pin
LighthouseJ2-Feb-05 16:53
LighthouseJ2-Feb-05 16:53 
GeneralRe: Threaded Concept Question Pin
LighthouseJ2-Feb-05 18:13
LighthouseJ2-Feb-05 18:13 
GeneralRe: Threaded Concept Question Pin
rwestgraham2-Feb-05 19:13
rwestgraham2-Feb-05 19:13 
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 

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.