- Windows_s_Permission-Demo.zip
- My Program
- Data
- calibri.ttf
- Picture
- bg1.bmp
- bg2.bmp
- Icon
- drive.bmp
- exe.bmp
- folder.bmp
- lock.bmp
- music.bmp
- other.bmp
- text.bmp
- video.bmp
- web.bmp
- qw
- tw
- wu
- xw
- yw
- zw
- Instaler.exe
- mfc100ud.dll
- msvcr100d.dll
- Windows's Permission 1 Guard.exe
- Windows's Permission 1.exe
- Windows_s_Permission-Source.zip
- Windows's Permission 1 Guard
- Windows's Permission 1 Instaler
- Windows's Permission 1
|
// CinputBox.cpp : implementation file
//
#include "stdafx.h"
#include "Windows's Permission 1 Instaler.h"
#include "CinputBox.h"
#include "afxdialogex.h"
int i=0;
// CinputBox dialog
IMPLEMENT_DYNAMIC(CinputBox, CDialogEx)
CinputBox::CinputBox(CWnd* pParent /*=NULL*/)
: CDialogEx(CinputBox::IDD, pParent)
{
}
CinputBox::~CinputBox()
{
}
void CinputBox::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Control(pDX, IDC_EDIT1, t);
}
BEGIN_MESSAGE_MAP(CinputBox, CDialogEx)
ON_BN_CLICKED(IDC_BUTTON1, &CinputBox::OnBnClickedButton1)
ON_WM_ACTIVATE()
END_MESSAGE_MAP()
// CinputBox message handlers
void CinputBox::OnBnClickedButton1()
{
this->t.GetWindowText(this->result);OnOK();
}
CString CinputBox::Get(){
i=1;this->DoModal();return this->result;
}
void CinputBox::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
{
CDialogEx::OnActivate(nState, pWndOther, bMinimized);
if(i){
result=_T("");SetBackgroundColor(RGB(101,158,224));i=0;
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.