Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Printing problem Pin
CodeBrain26-Apr-04 21:01
CodeBrain26-Apr-04 21:01 
GeneralRe: Printing problem Pin
Acetate27-Apr-04 3:41
Acetate27-Apr-04 3:41 
GeneralRe: Printing problem Pin
CodeBrain2-May-04 1:36
CodeBrain2-May-04 1:36 
QuestionEasy encryption way in windows? Pin
richard sancenot26-Apr-04 5:56
richard sancenot26-Apr-04 5:56 
AnswerRe: Easy encryption way in windows? Pin
jmkhael26-Apr-04 6:13
jmkhael26-Apr-04 6:13 
GeneralMFC : Dialog App stoping without reason !! Pin
haust26-Apr-04 5:44
haust26-Apr-04 5:44 
GeneralRe: MFC : Dialog App stoping without reason !! Pin
toxcct26-Apr-04 5:49
toxcct26-Apr-04 5:49 
GeneralRe: MFC : Dialog App stoping without reason !! Pin
haust26-Apr-04 7:16
haust26-Apr-04 7:16 
<code>
BOOL CFrontEndWin32Dlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Add "About..." menu item to system menu.

	// IDM_ABOUTBOX must be in the system command range.
	ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
	ASSERT(IDM_ABOUTBOX < 0xF000);

	CMenu* pSysMenu = GetSystemMenu(FALSE);
	if (pSysMenu != NULL)
	{
		CString strAboutMenu;
		strAboutMenu.LoadString(IDS_ABOUTBOX);
		if (!strAboutMenu.IsEmpty())
		{
			pSysMenu->AppendMenu(MF_SEPARATOR);
			pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
		}
	}

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon

	// TODO: Add extra initialization here
	CheckInstallState();
	UpdateText();

#if COMPILE_FOR_AUTORUN
	if (e_ISNotInstalled == m_InstallState)
	{
		char	VolumeName[FILENAME_MAX];
		char	CurrentPath[MAX_PATH];

		getcwd(CurrentPath, sizeof(CurrentPath));
		CurrentPath[3] = '\0';
		if (TRUE == GetVolumeInformation(CurrentPath, VolumeName, sizeof(VolumeName), 0, 0, 0, 0, 0))
		{
			if (0 != strcmpi(MAIN_INSTALL_DISK_VOLUME_NAME, VolumeName))
			{
				char	Buffer[512];

				LoadString(AfxGetResourceHandle(), IDS_INSERT_DISK_ONE, Buffer, sizeof(Buffer));
				AfxMessageBox(_T(Buffer), MB_OK);
				OnCancel();
			}
		}
	}
#endif // COMPILE_FOR_AUTORUN

	return TRUE;  // return TRUE  unless you set the focus to a control
}


BEGIN_MESSAGE_MAP(CFrontEndWin32Dlg, CDialog)
	ON_WM_SYSCOMMAND()
	ON_WM_PAINT()
	ON_WM_QUERYDRAGICON()
	//}}AFX_MSG_MAP
	ON_WM_DESTROY()
	ON_CBN_SELENDOK(IDC_COMBO_LANGUAGE, OnCbnSelendokComboLanguage)
	ON_BN_CLICKED(ID_DISPLAY, OnBnClickedDisplay)
	ON_BN_CLICKED(ID_HELP, OnBnClickedHelp)
	ON_BN_CLICKED(ID_CONTROLLERS, OnBnClickedControllers)
	ON_BN_CLICKED(IDOK, OnBnClickedOk)
END_MESSAGE_MAP()
</code>

GeneralRe: MFC : Dialog App stoping without reason !! Pin
Prakash Nadar26-Apr-04 6:07
Prakash Nadar26-Apr-04 6:07 
GeneralRe: MFC : Dialog App stoping without reason !! Pin
haust26-Apr-04 7:19
haust26-Apr-04 7:19 
GeneralRe: MFC : Dialog App stoping without reason !! Pin
toxcct26-Apr-04 7:32
toxcct26-Apr-04 7:32 
GeneralRe: MFC : Dialog App stoping without reason !! Pin
Prakash Nadar26-Apr-04 7:40
Prakash Nadar26-Apr-04 7:40 
GeneralRe: MFC : Dialog App stoping without reason !! Pin
haust27-Apr-04 11:28
haust27-Apr-04 11:28 
GeneralRe: MFC : Dialog App stoping without reason !! Pin
Prakash Nadar28-Apr-04 17:37
Prakash Nadar28-Apr-04 17:37 
GeneralSwitch between views in a SDI with Splitter? (better Fig.) Pin
nadin_sam26-Apr-04 5:39
nadin_sam26-Apr-04 5:39 
GeneralMoveFile and MoveFileEx Pin
Cyrus Dang26-Apr-04 5:37
Cyrus Dang26-Apr-04 5:37 
GeneralRe: MoveFile and MoveFileEx Pin
jmkhael26-Apr-04 5:44
jmkhael26-Apr-04 5:44 
GeneralRe: MoveFile and MoveFileEx Pin
Navin26-Apr-04 7:01
Navin26-Apr-04 7:01 
GeneralScreen DC and compat bitmap colour depth problem Pin
RA@Home26-Apr-04 5:33
RA@Home26-Apr-04 5:33 
GeneralRe: Screen DC and compat bitmap colour depth problem Pin
basementman26-Apr-04 5:36
basementman26-Apr-04 5:36 
GeneralRe: Screen DC and compat bitmap colour depth problem Pin
RA@Home26-Apr-04 5:47
RA@Home26-Apr-04 5:47 
GeneralRe: Screen DC and compat bitmap colour depth problem Pin
RA@Home26-Apr-04 6:24
RA@Home26-Apr-04 6:24 
GeneralRe: Screen DC and compat bitmap colour depth problem Pin
basementman26-Apr-04 6:29
basementman26-Apr-04 6:29 
GeneralRe: Screen DC and compat bitmap colour depth problem Pin
Christian Graus26-Apr-04 11:44
protectorChristian Graus26-Apr-04 11:44 
Generalgethostname() &quot;Array bounds write in WideCharToMultiByte&quot; Pin
Salvador Dali26-Apr-04 5:15
Salvador Dali26-Apr-04 5:15 

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.