Click here to Skip to main content
15,887,585 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CTabCtrl - retrieving tab's title text Pin
rp_suman20-Jul-11 2:23
rp_suman20-Jul-11 2:23 
QuestionVC6 to VC2008 migration Pin
_Flaviu19-Jul-11 19:34
_Flaviu19-Jul-11 19:34 
AnswerRe: VC6 to VC2008 migration Pin
Stefan_Lang19-Jul-11 22:04
Stefan_Lang19-Jul-11 22:04 
GeneralRe: VC6 to VC2008 migration Pin
_Flaviu20-Jul-11 4:05
_Flaviu20-Jul-11 4:05 
GeneralRe: VC6 to VC2008 migration Pin
_Flaviu20-Jul-11 19:51
_Flaviu20-Jul-11 19:51 
QuestionWhy debugging doesn't work properly when I choose "USE PRECOMPILED HEADER"? Pin
Cold_Fearing_Bird19-Jul-11 19:01
Cold_Fearing_Bird19-Jul-11 19:01 
AnswerRe: Why debugging doesn't work properly when I choose "USE PRECOMPILED HEADER"? Pin
Richard MacCutchan19-Jul-11 21:44
mveRichard MacCutchan19-Jul-11 21:44 
GeneralRe: Why debugging doesn't work properly when I choose "USE PRECOMPILED HEADER"? Pin
Cold_Fearing_Bird19-Jul-11 22:17
Cold_Fearing_Bird19-Jul-11 22:17 
Thanks for reply, I thihnk you're right.
Although it was the variables that from my cpp file didn't show up and leave the poor blue-cube(stands for variable)lonely there, I still believe it's my stdafx.h going awry.

here's my stdafx.h

#include <windows.h>
#include <windowsx.h>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <map>
#include <complex>
#include <fstream>
#include <sstream>
using namespace std ;
#include <strsafe.h>
#include <GdiPlus.h>
using namespace Gdiplus ;
#include <CommCtrl.h>
#include <cassert>



class __Init_win32_app
{
private:
	ULONG_PTR m_gdiToken ;
public:
	__Init_win32_app() ;
	~__Init_win32_app() ;
private:
	BOOL InitCommonControls() ;
} ;


//stdafx.cpp

#include "stdafx.h"

#pragma comment( lib, "gdiplus.lib" )
#pragma comment( lib, "comctl32.lib" )
#pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")

__Init_win32_app::__Init_win32_app()
{
	GdiplusStartupInput gdiplusStartupInput;
	GdiplusStartup(&m_gdiToken, &gdiplusStartupInput, NULL);
	InitCommonControls() ;
}
__Init_win32_app::~__Init_win32_app()
{
	GdiplusShutdown(m_gdiToken);
}

BOOL __Init_win32_app::InitCommonControls()
{
	INITCOMMONCONTROLSEX iccex ;
	iccex.dwSize = sizeof( iccex ) ;
	iccex.dwICC = 0													
//		|	ICC_ANIMATE_CLASS								// animate
//		|	ICC_BAR_CLASSES									//tool bar, status bar, track bar, tooltip
//		|	ICC_COOL_CLASSES									//re bar
//		|	ICC_DATE_CLASSES									// data and time picker
//		|	ICC_HOTKEY_CLASS								//hot key
//		|	ICC_INTERNET_CLASSES						// IP
//		|	ICC_LINK_CLASS										// hyper link
		|	ICC_LISTVIEW_CLASSES						// list view, header
//		|	ICC_NATIVEFNTCTL_CLASS					// navtive font
//		|	ICC_PAGESCROLLER_CLASS				// pager
//		|	ICC_PROGRESS_CLASS							// progress
		|	ICC_STANDARD_CLASSES						// button ,edit, static, listbox, combobox, scrollbar
//		|	ICC_TAB_CLASSES									// tab, tooltip
//		|	ICC_TREEVIEW_CLASSES						// tree view, tooltip
//		|	ICC_UPDOWN_CLASS								// up down
//		|	ICC_USEREX_CLASSES							// ComboBoxEx
//		|	ICC_WIN95_CLASSES								// animate, header, hotkey, list_view, progress bar, status bar, 
		;																			//tab, tooltip, toolbar, trackbar, tree_view, up down
	return ::InitCommonControlsEx( &iccex ) ;
}

__Init_win32_app win32_app ;


Could you help me with it?
GeneralRe: Why debugging doesn't work properly when I choose "USE PRECOMPILED HEADER"? Pin
Stefan_Lang19-Jul-11 22:48
Stefan_Lang19-Jul-11 22:48 
GeneralRe: Why debugging doesn't work properly when I choose "USE PRECOMPILED HEADER"? Pin
Cold_Fearing_Bird19-Jul-11 23:14
Cold_Fearing_Bird19-Jul-11 23:14 
GeneralRe: Why debugging doesn't work properly when I choose "USE PRECOMPILED HEADER"? Pin
Richard MacCutchan19-Jul-11 23:52
mveRichard MacCutchan19-Jul-11 23:52 
AnswerRe: Why debugging doesn't work properly when I choose "USE PRECOMPILED HEADER"? Pin
Stefan_Lang19-Jul-11 22:11
Stefan_Lang19-Jul-11 22:11 
GeneralRe: Why debugging doesn't work properly when I choose "USE PRECOMPILED HEADER"? Pin
Cold_Fearing_Bird19-Jul-11 22:22
Cold_Fearing_Bird19-Jul-11 22:22 
GeneralRe: Why debugging doesn't work properly when I choose "USE PRECOMPILED HEADER"? Pin
Stefan_Lang19-Jul-11 22:26
Stefan_Lang19-Jul-11 22:26 
QuestionHow to turn off the disassemble functionality Pin
Cold_Fearing_Bird19-Jul-11 5:48
Cold_Fearing_Bird19-Jul-11 5:48 
AnswerRe: How to turn off the disassemble functionality Pin
Richard MacCutchan19-Jul-11 6:15
mveRichard MacCutchan19-Jul-11 6:15 
AnswerRe: How to turn off the disassemble functionality Pin
Rajesh R Subramanian19-Jul-11 7:04
professionalRajesh R Subramanian19-Jul-11 7:04 
AnswerRe: How to turn off the disassemble functionality Pin
«_Superman_»19-Jul-11 8:40
professional«_Superman_»19-Jul-11 8:40 
GeneralRe: How to turn off the disassemble functionality Pin
Maximilien19-Jul-11 10:27
Maximilien19-Jul-11 10:27 
QuestionHow can I set the size of a popup CDialog? Pin
DanYELL19-Jul-11 5:20
DanYELL19-Jul-11 5:20 
AnswerRe: How can I set the size of a popup CDialog? Pin
Albert Holguin19-Jul-11 5:58
professionalAlbert Holguin19-Jul-11 5:58 
Questionright-click on windows taskbar Pin
kartikdasani19-Jul-11 2:18
kartikdasani19-Jul-11 2:18 
AnswerRe: right-click on windows taskbar Pin
«_Superman_»19-Jul-11 4:20
professional«_Superman_»19-Jul-11 4:20 
GeneralRe: right-click on windows taskbar Pin
kartikdasani20-Jul-11 3:27
kartikdasani20-Jul-11 3:27 
AnswerRe: right-click on windows taskbar Pin
Abhi Lahare20-Jul-11 11:33
Abhi Lahare20-Jul-11 11:33 

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.