Using SDI with Formviews
-
Hey all, I need some help using SDI with formviews. I can't seem to figure out how to change the screen to a different formview. For instance I have created two different formviews, one with a button on it, and another with just text on it to see if it will work. The problem I have is I don't know what to put in the button to make the view change resource IDD's and use the second formview. It looks like it is as simple as changing the ID, then calling invalidate to repaint the view with my new formview. Can anyone help me on this?? Thanks, Mike
-
Hey all, I need some help using SDI with formviews. I can't seem to figure out how to change the screen to a different formview. For instance I have created two different formviews, one with a button on it, and another with just text on it to see if it will work. The problem I have is I don't know what to put in the button to make the view change resource IDD's and use the second formview. It looks like it is as simple as changing the ID, then calling invalidate to repaint the view with my new formview. Can anyone help me on this?? Thanks, Mike
-
Hey all, I need some help using SDI with formviews. I can't seem to figure out how to change the screen to a different formview. For instance I have created two different formviews, one with a button on it, and another with just text on it to see if it will work. The problem I have is I don't know what to put in the button to make the view change resource IDD's and use the second formview. It looks like it is as simple as changing the ID, then calling invalidate to repaint the view with my new formview. Can anyone help me on this?? Thanks, Mike
It isn't a simple as first thought but this article and sample should show you how. http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q141/3/33.asp&NoWebContent=1[^] Michael 'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
-
It isn't a simple as first thought but this article and sample should show you how. http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q141/3/33.asp&NoWebContent=1[^] Michael 'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
Thanks a bunch. That's exactly what I was looking for.
-
It isn't a simple as first thought but this article and sample should show you how. http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q141/3/33.asp&NoWebContent=1[^] Michael 'War is at best barbarism...Its glory is all moonshine. It is only those who have neither fired a shot nor heard the shrieks and groans of the wounded who cry aloud for blood, more vengeance, more desolation. War is hell.' - General William Sherman, 1879
Got another question for you that pertains to the question above, if you're able to answer it. A general doc/view question though. The application I want to use the SDI for I have programmed in a dialog based interface. The reason for the switch is to create printable reports, which I don't see a way to do in dialog based. What I'm doing is reading in tables from a database and displaying them in dialog windows, and allowing things to be entered into the database through the dialogs. The question I have is, is this something that should be used in an SDI like I'm thinking or should it be used in an MDI? I'm still pretty new to the doc/view structure and SDI/MDI. I've only really done one program using it about a year ago during my last year of school. Anyway, I don't really need any detailed explanations or anything like that, just wondering what the best way to go is, so I don't spend my time learning something that isn't going to be useful for my project. (I do realize that MDI builds off of SDI, but if MDI is the way to go I'd rather learn how to build the multiple views using that instead of what I'm currently doing with SDI). Thanks, Mike