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

C / C++ / MFC

 
GeneralRe: PropertyPages and TabPages Pin
Joan M19-Sep-02 6:29
professionalJoan M19-Sep-02 6:29 
GeneralRe: PropertyPages and TabPages Pin
monrobot1319-Sep-02 8:49
monrobot1319-Sep-02 8:49 
Generalcurrency conversion Pin
bobjones219-Sep-02 2:39
bobjones219-Sep-02 2:39 
GeneralRe: currency conversion Pin
Le centriste19-Sep-02 4:04
Le centriste19-Sep-02 4:04 
GeneralInclude a .lib file Pin
Anonymous19-Sep-02 2:33
Anonymous19-Sep-02 2:33 
GeneralRe: Include a .lib file Pin
BlackSmith19-Sep-02 2:41
BlackSmith19-Sep-02 2:41 
GeneralRe: Include a .lib file Pin
User 665819-Sep-02 5:25
User 665819-Sep-02 5:25 
GeneralWant DLL Dialog to behave like Dialog base app Pin
Tony Teveris19-Sep-02 2:14
Tony Teveris19-Sep-02 2:14 
I have a problem with a DialogBox where the code and it's resources are all in a DLL. I want the dialog to act like
a Dialog based app when it is "called up". Meaning I want it to have a taskbar icon, minimize, etc. I have disabled the Maximize and Size
commands from the system menu. The dialog can be "called up" by an entry point in the DLL, or by a RUNDLL32 style entry point
int the dll. The dialog behaves properly under W2K, but under Win9X I get no taskbar icon and when I minimize the dialog I get a
very small window that sit right above the taskbar in the lower left corner of the screen.

Can anyone provide me with some help on this ?

Thanks in advance
Tony Teveris

Here is my dialog setup

IDD_FONTMANAGER DIALOG DISCARDABLE 0, 0, 500, 293
STYLE DS_MODALFRAME | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION |
WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "Gerber Font Manager"
MENU IDR_MENU1
FONT 8, "MS Sans Serif"
BEGIN
.
.
.
END


Here is the dialog class init

CFontManagerDlg::CFontManagerDlg(CWnd* pParent /*=NULL*/)
: CDialog(CFontManagerDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CFontManagerDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT

// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDI_FONTMANAGEMENT);
.
.
}




Here is my Dialog INIT code

BOOL CFontManagerDlg::OnInitDialog()
{
CDialog::OnInitDialog();

// subclass self draw listboxes
// m_Styles_List.SubclassListBox(IDC_STYLES_LIST,this);

m_NotSecured.SetTextColor(FT_I_NOT_VALID_FONT_COLOR);
m_NotInCatalog.SetTextColor(FT_I_NOT_ON_CD_COLOR);
m_NotInCatalog.SetWindowText("");

CMenu* pSysMenu = GetSystemMenu(FALSE);
pSysMenu->EnableMenuItem (SC_MAXIMIZE,MF_BYCOMMAND | MF_GRAYED);
pSysMenu->EnableMenuItem (SC_SIZE,MF_BYCOMMAND | MF_GRAYED);

// 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
.
.
.
return TRUE
}


Tony Teveris
Gerber Scientific Products
Senior Software Engineer
Phone: 860 648 8151
Fax: 860 648 8214
83 Gerber Road West
South Windsor, CT 06074
Questionhow to get an edit box to respond to enter Pin
ns19-Sep-02 1:14
ns19-Sep-02 1:14 
AnswerRe: how to get an edit box to respond to enter Pin
Arjan Schouten19-Sep-02 1:40
Arjan Schouten19-Sep-02 1:40 
AnswerRe: how to get an edit box to respond to enter Pin
dabs19-Sep-02 1:55
dabs19-Sep-02 1:55 
GeneralRe: I really need to know this.... Pin
ns19-Sep-02 2:04
ns19-Sep-02 2:04 
GeneralRe: I really need to know this.... Pin
dabs19-Sep-02 2:13
dabs19-Sep-02 2:13 
GeneralRe: I really need to know this.... Pin
ns19-Sep-02 2:27
ns19-Sep-02 2:27 
GeneralRe: I really need to know this.... Pin
Arjan Schouten19-Sep-02 3:23
Arjan Schouten19-Sep-02 3:23 
Generalavoid to close the property sheet when the user press return, handling return key in a ListCtrl... Pin
Joan M19-Sep-02 1:01
professionalJoan M19-Sep-02 1:01 
GeneralRe: avoid to close the property sheet when the user press return, handling return key in a ListCtrl... Pin
Arjan Schouten19-Sep-02 1:12
Arjan Schouten19-Sep-02 1:12 
GeneralRe: avoid to close the property sheet when the user press return, handling return key in a ListCtrl... Pin
Steve S19-Sep-02 1:48
Steve S19-Sep-02 1:48 
GeneralRe: avoid to close the property sheet when the user press return, handling return key in a ListCtrl... Pin
Joan M19-Sep-02 3:55
professionalJoan M19-Sep-02 3:55 
GeneralRe: avoid to close the property sheet when the user press return, handling return key in a ListCtrl... Pin
Steve S19-Sep-02 4:40
Steve S19-Sep-02 4:40 
GeneralRe: avoid to close the property sheet when the user press return, handling return key in a ListCtrl... Pin
Joan M19-Sep-02 5:10
professionalJoan M19-Sep-02 5:10 
Questionconvert CString to a _bstr_t - how to? Pin
ns19-Sep-02 1:00
ns19-Sep-02 1:00 
AnswerRe: convert CString to a _bstr_t - how to? Pin
dabs19-Sep-02 1:25
dabs19-Sep-02 1:25 
GeneralRe: convert CString to a _bstr_t - how to? Pin
ns19-Sep-02 1:31
ns19-Sep-02 1:31 
GeneralRe: convert CString to a _bstr_t - how to? Pin
ns19-Sep-02 1:32
ns19-Sep-02 1:32 

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.