Click here to Skip to main content
15,904,153 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRestrict InvalidateRect Pin
manju 321-Jul-11 2:12
manju 321-Jul-11 2:12 
AnswerRe: Restrict InvalidateRect Pin
Roger Allen26-Jul-11 6:28
Roger Allen26-Jul-11 6:28 
QuestionHow to use "UnitTest" to test C++ code [modified] Pin
Cold_Fearing_Bird20-Jul-11 21:49
Cold_Fearing_Bird20-Jul-11 21:49 
AnswerRe: How to use "UnitTest" to test C++ code Pin
_AnsHUMAN_ 21-Jul-11 1:28
_AnsHUMAN_ 21-Jul-11 1:28 
GeneralRe: How to use "UnitTest" to test C++ code Pin
Stefan_Lang21-Jul-11 1:57
Stefan_Lang21-Jul-11 1:57 
GeneralRe: How to use "UnitTest" to test C++ code Pin
Cold_Fearing_Bird21-Jul-11 2:33
Cold_Fearing_Bird21-Jul-11 2:33 
GeneralRe: How to use "UnitTest" to test C++ code Pin
Stefan_Lang21-Jul-11 2:55
Stefan_Lang21-Jul-11 2:55 
GeneralRe: How to use "UnitTest" to test C++ code Pin
Cold_Fearing_Bird21-Jul-11 4:45
Cold_Fearing_Bird21-Jul-11 4:45 
AnswerRe: How to use "UnitTest" to test C++ code Pin
Rolf Kristensen27-Jul-11 12:18
Rolf Kristensen27-Jul-11 12:18 
QuestionLong Strings in ComboBox not fully visible. Pin
Le@rner20-Jul-11 18:21
Le@rner20-Jul-11 18:21 
AnswerRe: Long Strings in ComboBox not fully visible. Pin
Chandrasekharan P20-Jul-11 18:55
Chandrasekharan P20-Jul-11 18:55 
GeneralRe: Long Strings in ComboBox not fully visible. Pin
Le@rner20-Jul-11 23:43
Le@rner20-Jul-11 23:43 
AnswerRe: Long Strings in ComboBox not fully visible. Pin
_Flaviu24-Jul-11 7:08
_Flaviu24-Jul-11 7:08 
QuestionPrint command to printer using PostMessage? Pin
AnayKulkarni20-Jul-11 2:29
AnayKulkarni20-Jul-11 2:29 
AnswerRe: Print command to printer using PostMessage? Pin
Richard MacCutchan20-Jul-11 2:33
mveRichard MacCutchan20-Jul-11 2:33 
QuestionCTabCtrl - retrieving tab's title text Pin
rp_suman20-Jul-11 1:11
rp_suman20-Jul-11 1:11 
AnswerRe: CTabCtrl - retrieving tab's title text Pin
Richard MacCutchan20-Jul-11 1:32
mveRichard MacCutchan20-Jul-11 1:32 
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?

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.