Home > Software engineering >  VC 6.0, how to acquire the resources within the view property page size information
VC 6.0, how to acquire the resources within the view property page size information

Time:09-26

Mentor throw over the problems left over by history, and is written by C WIN application, when using property page for resolution of the problem will lead to different PC PropSheet container size, part of the content of the property page display not to come out, so hope to get to the IDD_PROPPAGE_LARGE this resource file to adjust the size of the container, the size of the C programming the WIN has never written before nor used C + +, bother you to answer

CodePudding user response:

Brush a points,,,,,,,,,,

CodePudding user response:

In the virtual machine using winxp,

CodePudding user response:

refer to the second floor zhao4zhong1 response:
in the virtual machine used under winxp


Users of environmental uncertainty, there, so want to force yourself resolution Settings window

CodePudding user response:

reference kingmax_yang reply: 3/f
Quote: refer to the second floor zhao4zhong1 response:

In the virtual machine used under winxp


Users of environmental uncertainty, there, so want to force yourself the resolution of the Settings window

Maintenance of old system program under the new system work practice is corresponding to the old system under the new system under a virtual machine using the old system,
How to feel like a tongue twister,

CodePudding user response:

PropertySheet is Microsoft's bug in doing win10 may have showed the bug of incomplete, should be the influence of the system default font
Use the following code to solve

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
File: CBPropertySheet. H
Author: Ovidiu Cucu - Microsoft MVP Viusal c + +
Codeguru nickname: ovidiucucu
Homepage: www.codexpert.ro
Updated: January 02, 2010
Contents: CCBPropertySheet class definition.
Few: CCBPropertySheet is an MFC extension class for creating the properties sheets
Which are using a custom font.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
# pragma once

# if _MSC_VER & lt; 1300//VS6.0 and older
# define DOMODAL_RET int
# the else
# define DOMODAL_RET INT_PTR
# endif

The class CCBPropertySheet: public CBCGPPropertySheetCtrl
{
DECLARE_DYNAMIC (CCBPropertySheet)
Public:
CCBPropertySheet (UINT nIDCaption, CWnd * pParentWnd=NULL, UINT iSelectPage=0).
CCBPropertySheet (LPCTSTR pszCaption, CWnd * pParentWnd=NULL, UINT iSelectPage=0).
CCBPropertySheet ();
Virtual ~ CCBPropertySheet ();

//the Attributes
Private:
The static __declspec (thread) WORD m_wFontSize;
The static __declspec (thread) LPCTSTR m_pszFontFaceName;

//Operations
Public:
//call this function to create a modal property sheet with custom font.
DOMODAL_RET DoModal (LPCTSTR pszFontFaceName, WORD wFontSize);

//call this function to create a modal property sheet with the default font.
Virtual DOMODAL_RET DoModal ();

//call this function to create a modeless property sheet with custom font.
BOOL Create (LPCTSTR pszFontFaceName, WORD wFontSize, CWnd * pParentWnd=NULL,
DWORD dwStyle=(DWORD) - 1, dwords dwExStyle=0);

//call this function to create a modeless property sheet with the default font.
BOOL Create (CWnd * pParentWnd=NULL, dwords dwStyle=(DWORD) - 1, dwords dwExStyle=0).

//Overides
Protected:
Virtual void BuildPropPageArray ();

//Implementation
Private:
Static int the CALLBACK PropSheetProc (HWND hWndDlg, UINT uMsg, LPARAM LPARAM);
Void Init (LPCTSTR pszFontFaceName, WORD wFontSize);
};

CodePudding user response:

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
File: CBPropertySheet. CPP
Author: Ovidiu Cucu - Microsoft MVP Viusal c + +
Codeguru nickname: ovidiucucu
Homepage: www.codexpert.ro
Updated: January 02, 2010
Contents: CCBPropertySheet class implementation.
Few: CCBPropertySheet is an MFC extension class for creating the properties sheets
Which are using a custom font.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
# include "stdafx. H"

# include "CBPropertySheet. H"
# include & lt; AFXPRIV. H>

# ifdef _DEBUG
# define new DEBUG_NEW
# undef THIS_FILE
The static char THIS_FILE []=__FILE__;
# endif

WORD __declspec (thread) CCBPropertySheet: : m_wFontSize=0;
LPCTSTR __declspec (thread) CCBPropertySheet: : m_pszFontFaceName=NULL;

IMPLEMENT_DYNAMIC (CCBPropertySheet CBCGPPropertySheetCtrl)

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Function: CCBPropertySheet: : CCBPropertySheet
The Purpose: Constructs a CCBPropertySheet object.
The Parameters: - nIDCaption: the Resource ID of the caption to be 2 for the property sheet.
- pParentWnd: the Parent window (the default NULL).
- iSelectPage: the Index of the page that will initially be on top (the default is 0.)
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
CCBPropertySheet: : CCBPropertySheet (UINT nIDCaption, CWnd * pParentWnd, UINT iSelectPage)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull