Article View: borland.public.cppbuilder.nativeapi
Article #12302Please helps me build a password dialog box.
From: Cactus
Date: Tue, 16 Dec 2003 06:40
Date: Tue, 16 Dec 2003 06:40
91 lines
3049 bytes
3049 bytes
Please helps me build a password dialog box.
that component not completed.
need helps.
thanks.
"PASSW.RC"
#define IDC_PASSW 10
PASSW_DIALOG DIALOG 74, 81, 124, 48
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Password request"
FONT 10, "MS Sans Serif"
{
DEFPUSHBUTTON "OK", IDOK, 7, 26, 50, 14
PUSHBUTTON "Cancel", IDCANCEL, 68, 26, 50, 14
EDITTEXT IDC_PASSW, 6, 7, 112, 12, ES_PASSWORD | WS_BORDER | WS_TABSTOP
}
"PasswDialog.h"
//--------------------------------------------------------------------------
-
#ifndef PasswDialogH
#define PasswDialogH
//--------------------------------------------------------------------------
-
#include <Dialogs.hpp>
//--------------------------------------------------------------------------
-
class PACKAGE TPasswDialog : public TCommonDialog
{
private:
protected:
public:
__fastcall TPasswDialog(TComponent* Owner);
virtual bool __fastcall Execute(void);
__published:
};
//--------------------------------------------------------------------------
-
#endif
"PasswDialog.cpp"
//--------------------------------------------------------------------------
-
#include <vcl.h>
#pragma hdrstop
#include "PasswDialog.h"
#pragma package(smart_init)
//--------------------------------------------------------------------------
-
// ValidCtrCheck is used to assure that the components created do not have
// any pure virtual functions.
//
static inline void ValidCtrCheck(TPasswDialog *)
{
new TPasswDialog(NULL);
}
//--------------------------------------------------------------------------
-
__fastcall TPasswDialog::TPasswDialog(TComponent* Owner)
: TCommonDialog(Owner)
{
Template = "PASSW_DIALOG";
}
bool __fastcall TPasswDialog::Execute(void)
{
return false;
}
//--------------------------------------------------------------------------
-
namespace Passwdialog
{
void __fastcall PACKAGE Register()
{
TComponentClass classes[1] = {__classid(TPasswDialog)};
RegisterComponents("Me", classes, 0);
}
}
//--------------------------------------------------------------------------
-
Technical Details
Message-ID:
<3fdeac08$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,defd14381ef9c202,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-15 23:01:14 PST From: "Cactus" <a@b.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Please helps me build a password dialog box. Date: Tue, 16 Dec 2003 14:40:14 +0800 Lines: 95 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 218.15.225.213 Message-ID: <3fdeac08$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1071557640 218.15.225.213 (15 Dec 2003 22:54:00 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail