Click here to Skip to main content
16,010,022 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Collection Class Question Pin
Joaquín M López Muñoz13-Mar-02 12:19
Joaquín M López Muñoz13-Mar-02 12:19 
GeneralRe: Collection Class Question Pin
CDuddley13-Mar-02 14:19
CDuddley13-Mar-02 14:19 
GeneralRe: Collection Class Question Pin
Tim Smith13-Mar-02 11:38
Tim Smith13-Mar-02 11:38 
GeneralWM_GETMINMAXINFO Pin
13-Mar-02 10:55
suss13-Mar-02 10:55 
GeneralRe: WM_GETMINMAXINFO Pin
Derek Waters13-Mar-02 11:33
Derek Waters13-Mar-02 11:33 
GeneralRe: WM_GETMINMAXINFO Pin
13-Mar-02 11:43
suss13-Mar-02 11:43 
GeneralRe: WM_GETMINMAXINFO Pin
Tim Smith13-Mar-02 11:42
Tim Smith13-Mar-02 11:42 
GeneralVC++ in Visual Studio.NET Pin
Rick Crone13-Mar-02 10:36
Rick Crone13-Mar-02 10:36 
I'm trying to do something that I think is very simple in VC++ 6.0 in the new VC++ in the Visual Studio.NET. I'm getting strange results. It looks like creating a dialog is creating some HTML code as well as the recource (.rc) and DoModal() seems to be using both of them.

Here are the steps I'm using.
I am creating a VC++ project selecting an MFC Application.

I'm changing these defaults:
Application type = Single Document
Database Support = Header Files Only
ODBC (instead of OLE DB)
In the last step I'm chaning the CView to a CFormView.

The wizard pops a message about no printing support - but I think that's ok.

Now I add a resource, it's a dialog - leave the defaults for this test. Make a class from this resource - DIALOG1.

On my CFormView I add a button [Do It]... add the #include for my DIALOG1.h and add a message handler for this [Do It] button with this simple code:

DIALOG1 d;
d.DoModal();

It runs... but the buttons seem to have shadows and there is a 'TODO: Place controls here' text on my dialog. Hey! That message is not on my dialog resource! Hey! In the HTML folder there is a IDR_HTML_DILAOG1 html file.... that's got buttons and the message that are not on my resource, but are displayed when my dialog 'runs'.

If you move the buttons on the resource you can see that the 'shadows' are really copies of the [OK] and [CANCEL] buttons that are on my dialog.

What's up with this? Is anyone else seeing this stuff?




Rick Crone

GeneralRe: VC++ in Visual Studio.NET Pin
Bill Wilson13-Mar-02 14:24
Bill Wilson13-Mar-02 14:24 
GeneralRe: VC++ in Visual Studio.NET Pin
Rick Crone14-Mar-02 2:59
Rick Crone14-Mar-02 2:59 
GeneralRe: VC++ in Visual Studio.NET Pin
Bill Wilson14-Mar-02 6:16
Bill Wilson14-Mar-02 6:16 
GeneralRe: VC++ in Visual Studio.NET Pin
Rick Crone14-Mar-02 9:19
Rick Crone14-Mar-02 9:19 
GeneralRe: VC++ in Visual Studio.NET Pin
Bill Wilson14-Mar-02 9:55
Bill Wilson14-Mar-02 9:55 
GeneralRe: VC++ in Visual Studio.NET Pin
Rick Crone14-Mar-02 10:27
Rick Crone14-Mar-02 10:27 
GeneralRe: VC++ in Visual Studio.NET Pin
Bill Wilson14-Mar-02 12:18
Bill Wilson14-Mar-02 12:18 
QuestionAnybody has it???? Pin
Jay!13-Mar-02 9:26
Jay!13-Mar-02 9:26 
GeneralTapi32.DLL weirdness Pin
#realJSOP13-Mar-02 9:02
professional#realJSOP13-Mar-02 9:02 
GeneralRe: Tapi32.DLL weirdness Pin
Tim Deveaux13-Mar-02 10:46
Tim Deveaux13-Mar-02 10:46 
GeneralRe: Tapi32.DLL weirdness Pin
Michael P Butler13-Mar-02 12:30
Michael P Butler13-Mar-02 12:30 
GeneralRe: Tapi32.DLL weirdness Pin
#realJSOP14-Mar-02 0:05
professional#realJSOP14-Mar-02 0:05 
GeneralRe: Tapi32.DLL weirdness Pin
Nish Nishant13-Mar-02 13:07
sitebuilderNish Nishant13-Mar-02 13:07 
GeneralRe: Tapi32.DLL weirdness Pin
#realJSOP14-Mar-02 0:05
professional#realJSOP14-Mar-02 0:05 
GeneralPage eject Pin
ScottM13-Mar-02 8:29
ScottM13-Mar-02 8:29 
GeneralRe: Page eject Pin
Jason Hihn13-Mar-02 8:37
Jason Hihn13-Mar-02 8:37 
GeneralAnnoying ReadFile() problem Pin
Klaus Probst13-Mar-02 7:54
Klaus Probst13-Mar-02 7:54 

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.