LoginDialog.cpp #1

  • //
  • guest/
  • sven_erik_knop/
  • c++/
  • NppPerforcePlugin/
  • LoginDialog.cpp
  • View
  • Commits
  • Open Download .zip Download (1 KB)
// LoginDialog.cpp : implementation file
//

#include "stdafx.h"
#include "resource.h"
#include "LoginDialog.h"


// LoginDialog dialog

IMPLEMENT_DYNAMIC(LoginDialog, CDialog)

LoginDialog::LoginDialog(CWnd* pParent /*=NULL*/)
	: CDialog(LoginDialog::IDD, pParent)
{

}

LoginDialog::~LoginDialog()
{
}

void LoginDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(LoginDialog, CDialog)
	ON_EN_CHANGE(IDC_EDIT1, &LoginDialog::OnEnChangeEdit1)
	ON_BN_CLICKED(IDOK, &LoginDialog::OnBnClickedOk)
	ON_BN_CLICKED(IDCANCEL, &LoginDialog::OnBnClickedCancel)
END_MESSAGE_MAP()


// LoginDialog message handlers

void LoginDialog::OnEnChangeEdit1()
{
	// TODO:  If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.

	// TODO:  Add your control notification handler code here
}

void LoginDialog::OnBnClickedOk()
{
	// TODO: Add your control notification handler code here
	OnOK();
}

void LoginDialog::OnBnClickedCancel()
{
	// TODO: Add your control notification handler code here
	OnCancel();
}
# Change User Description Committed
#2 10986 Sven Erik Knop Updated for new-style P4V.

Now using P4VC (there is no more P4V -cmd). Currently only Revgraph, Timelapse View and Submit are supported.
#1 7822 Sven Erik Knop Preparations for log-in dialog.
The dialog is written, but not hooked up yet, but all the parts compile and link.
Error dialog now displays a different error text if the ticket has expired, in preparation for the next step.