MFC support in ATL project

This is a discussion on MFC support in ATL project within the Windows Programming forums, part of the Platform Specific Boards category; Hi all, I've done an ATL project but now I have to add a slider and the only way to ...

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    45

    MFC support in ATL project

    Hi all, I've done an ATL project but now I have to add a slider and the only way to add it (that I know) is to add to the STDAFX.H this:
    Code:
    #include <afxwin.h>         // MFC core and standard components
    #include <afxext.h>         // MFC extensions
    #include <afxdisp.h>        // MFC Automation classes
    #include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
    #ifndef _AFX_NO_AFXCMN_SUPPORT
    #include <afxcmn.h>			// MFC support for Windows Common Controls
    #endif // _AFX_NO_AFXCMN_SUPPORT
    But I receive this fatal error:

    Compiling...
    stdafx.cpp
    C:\Programs\Microsoft Visual Studio 8\VC\atlmfc\include\afxv_w32.h(16) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>

    I've searched on google but every way I've tried had no effects.

    Need help

  2. #2
    Registered User
    Join Date
    Jul 2005
    Posts
    45
    FIXED

    For the interested ppl, use CTrackBarCtrl instead of CSliderCtrl

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    45
    Btw, someone has some hints about the:
    Code:
    void MakeTransparent()
    I've defined as this:
    Code:
    void MakeTransparent(HWND hWnd, int value, COLORREF *color) {...}
    but I need only to have the main window transparent not a ghost, I dunno why the main window is only a ghost in fact if I have under it notepad opened I write on notepad and the the main window switch in background!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open-source Game Project
    By Glorfindel in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 03-24-2009, 02:12 AM
  2. can not create Visual C++ Smart Device project
    By George2 in forum Tech Board
    Replies: 0
    Last Post: 11-26-2006, 06:20 AM
  3. Release MFC Programs & Dynamic MFC DLL :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 05-18-2002, 07:42 PM
  4. Understanding The Future of MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 04-15-2002, 10:08 PM
  5. Do you support the Human Clone project?
    By Yoshi in forum A Brief History of Cprogramming.com
    Replies: 31
    Last Post: 01-25-2002, 10:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21