亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mod_rssim.cpp

?? modbus PLC 模擬程序
?? CPP
字號:
/////////////////////////////////////////////////////////////////////////////
//
// FILE: MOD_sim.cpp : implementation file
//
// See _README.CPP
//
// Defines the class behaviors for the application.
//
//
/////////////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "MOD_RSsim.h"
#include "MOD_RSsimDlg.h"



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


void HandleTooltipsActivation(MSG *pMsg, CWnd *This, CWnd *disabledCtrls[], int numOfCtrls, CToolTipCtrl *pTooltip)
{
CRect  rect;
POINT  pt;

HWND   hWnd     = pMsg->hwnd;
LPARAM lParam   = pMsg->lParam;

//---------------------------------------------------------------------------
//      Disabled control do not show tool tips, in modal dialog
//
//
//      The hwnd of the WM_MOUSEMOVE above a disabled control
//      is the hWnd of the Dialog itself, this confuse the tooltip
//
//      To correct this, if we get WM_MOUSEMOVE and the hwnd is the dialog's hwnd
//
//      We check on all the controls that are Visible, but disabled if the point is in their
//  rectangle.
//
// In this case we alter the msg to the controls hWnd and coordinates before
// Relaying it to the toolTip control
//----------------------------------------

    
   if( (pMsg->message == WM_MOUSEMOVE) && (pMsg->hwnd == This->m_hWnd)) 
   {
      //---------------------------
      // The point is in the dialog 
      // client coordinates
      //---------------------------
      pt.x = LOWORD(pMsg->lParam);  // horizontal position of cursor 
      pt.y = HIWORD(pMsg->lParam);  // vertical position of cursor 

      for (int i = 0; i < numOfCtrls; i++) 
      {
         //---------------------------------
         // rect is the control rectangel in
         // Dialog client coordinates
         //----------------------------------
         disabledCtrls[i]->GetWindowRect(&rect);
         This->ScreenToClient(&rect);                                        

         if(rect.PtInRect(pt) ) 
         {
                 //----------------------------------------------------------------
                 // The mouse is inside the control
                 //
                 // 1. We change the Msg hwnd    to the controls hWnd
                 // 2. We change the Msg lParam  to the controls client coordinates
                 //
                 //----------------------------------------------------------------

                 pMsg->hwnd = disabledCtrls[i]->m_hWnd;

                 This->ClientToScreen(&pt);
                 disabledCtrls[i]->ScreenToClient(&pt);
                 pMsg->lParam = MAKELPARAM(pt.x, pt.y);
                 break;
         }
      }
   }


   //---------------------------------------
   //      Relay the msg to the tool tip control
   //---------------------------------------
   pTooltip->RelayEvent(pMsg);
   pTooltip->Activate(TRUE);

   //--------------------------------------
   //      Restore the original msg
   //--------------------------------------
   pMsg->hwnd = hWnd;
   pMsg->lParam = lParam;
}

// some little functiosn used to implement the alph-blend transparency
lpfnSetLayeredWindowAttributes m_pSetLayeredWindowAttributes = NULL;

// ---------------------------------------- GetTNImport ---------------------------
// This only works on 2000 onwards.
//
// Get a Fn pointer from USER32.DLL to do the transparency
BOOL GetTNImport()
{
OSVERSIONINFO os = { sizeof(os) };
GetVersionEx(&os);
// use m_bWin2k before any call to the m_pSetLayeredWindowAttributes to make sure we are runninng Win2K
BOOL m_bWin2K = ( VER_PLATFORM_WIN32_NT == os.dwPlatformId && os.dwMajorVersion >= 5 ); 

   if (!m_bWin2K)  // bail, requires Win2K or XP to work
      return FALSE;
   // Here we import the function from USER32.DLL
   HMODULE hUser32 = GetModuleHandle(_T("USER32.DLL"));
   m_pSetLayeredWindowAttributes = (lpfnSetLayeredWindowAttributes)GetProcAddress(hUser32, "SetLayeredWindowAttributes");

   // If the import did not succeed, make sure your app can handle it!
   if (NULL == m_pSetLayeredWindowAttributes)
	   return FALSE; //Bail out!!!
   return TRUE;
} // GetTNImport


/////////////////////////////////////////////////////////////////////////////
// CMOD_simApp

BEGIN_MESSAGE_MAP(CMOD_simApp, CWinApp)
	//{{AFX_MSG_MAP(CMOD_simApp)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG
	ON_COMMAND(ID_HELP, OnHelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMOD_simApp construction

CMOD_simApp::CMOD_simApp()
{
	// TODO: add construction code here,
	// Place all significant initialization in InitInstance
}
/*
void CMOD_simApp::OnHelp()
{
   // navigate to someplace for help
   OutputDebugString("Help()\n");
   HINSTANCE h = ShellExecute(NULL, "open", "http://www.adroit.co.za\\utilities\\mod_RSsim_home.htm", NULL, NULL, SW_SHOWNORMAL);
   if ((UINT)h > 32) 
   {
   } else 
   {
      m_pMainWnd->MessageBox("Unable to open web help URL\nCheck your browser settings.");          // unable to execute file!
   }

} */

/////////////////////////////////////////////////////////////////////////////
// The one and only CMOD_simApp object

CMOD_simApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CMOD_simApp initialization

BOOL CMOD_simApp::InitInstance()
{
//	if (!AfxSocketInit())
//	{
//		AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
//		return FALSE;
//	}

	CoInitialize(NULL);
	AfxEnableControlContainer();
	// Standard initialization
	// If you are not using these features and wish to reduce the size
	//  of your final executable, you should remove from the following
	//  the specific initialization routines you do not need.

#ifdef _AFXDLL
	Enable3dControls();			// Call this when using MFC in a shared DLL
#else
	Enable3dControlsStatic();	// Call this when linking to MFC statically
#endif

WNDCLASS wndcls;
   
   // Start with NULL defaults.
   memset(&wndcls, 0, sizeof(WNDCLASS));   
   // Get class information for default window class.
   ::GetClassInfo(AfxGetInstanceHandle(),"#32770",&wndcls);
   wndcls.lpszClassName = SIMULATOR_WINDOW_CLASSNAME;

   AfxRegisterClass(&wndcls);

   { // MOD simulator
	CMOD_simDlg dlg;
	m_pMainWnd = &dlg;
	int nResponse = dlg.DoModal();

	   if (nResponse == IDOK)
	   {
		   // TODO: Place code here to handle when the dialog is
		   //  dismissed with OK
	   }
	   else if (nResponse == IDCANCEL)
	   {
		   // TODO: Place code here to handle when the dialog is
		   //  dismissed with Cancel
	   }
   }
	// Since the dialog has been closed, return FALSE so that we exit the
	//  application, rather than start the application's message pump.
	return FALSE;
}

void CMOD_simApp::GetMyHelpTopic(CString &topic) 
{ 
   if (m_htmBookmark.GetLength()) 
      topic=m_htmBookmark.Mid(1);
   else 
      topic="";
}

void CMOD_simApp::SetMyHelpTopic(LPCTSTR topic) 
{ 
   if (strlen(topic)) 
      m_htmBookmark = "#";
   else 
      m_htmBookmark = "";
   m_htmBookmark += topic;
}

////////////////////////////////////////////////////////////////////////
// SetCurrentTopic class implementation

SetCurrentTopic::SetCurrentTopic()
{
   GetTopic(m_topicLast);
}


SetCurrentTopic::SetCurrentTopic(LPCTSTR topic)
{
   GetTopic(m_topicLast);
   SetTopic(topic);
}


SetCurrentTopic::~SetCurrentTopic()
{
   SetTopic(m_topicLast);
}

void SetCurrentTopic::SetTopic(LPCTSTR topic)
{
   ((CMOD_simApp*)AfxGetApp())->SetMyHelpTopic(topic);
}

void SetCurrentTopic::GetTopic(CString& topic)
{
   ((CMOD_simApp*)AfxGetApp())->GetMyHelpTopic(topic);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品视频yy9299一区| 免费观看日韩电影| 天堂精品中文字幕在线| 国产欧美一区二区三区在线老狼| 一本久久a久久免费精品不卡| 欧美一级片在线看| 日韩美女精品在线| 韩国女主播成人在线| 欧美性三三影院| 亚洲欧洲精品一区二区三区不卡| 日本三级亚洲精品| 欧美四级电影在线观看| 国产精品色在线观看| 美女视频网站久久| 欧美午夜寂寞影院| 在线观看一区日韩| 国产精品久久夜| 韩国视频一区二区| 日韩欧美国产一区二区在线播放| 亚洲品质自拍视频| 99re8在线精品视频免费播放| 精品国产乱码久久久久久老虎| 无码av免费一区二区三区试看| 91美女在线看| 国产精品免费久久| 成人一区二区三区| 国产日产欧美精品一区二区三区| 毛片不卡一区二区| 欧美精品一级二级| 亚洲午夜一二三区视频| 欧洲中文字幕精品| 亚洲精品久久久久久国产精华液| 成人av资源在线观看| 欧美激情在线看| 国产成人亚洲综合a∨婷婷图片| 2017欧美狠狠色| 国产一本一道久久香蕉| 精品国产精品网麻豆系列 | 欧美日韩精品欧美日韩精品一 | 色综合久久综合| 亚洲丝袜美腿综合| 色女孩综合影院| 亚洲二区在线观看| 欧美高清一级片在线| 日韩成人免费看| 日韩一区二区三区高清免费看看| 美日韩黄色大片| 欧美成人福利视频| 国产一区二区三区在线观看免费 | 欧美日韩国产三级| 日韩av不卡在线观看| 日韩欧美一区二区三区在线| 精品国产电影一区二区| 国产精品一区在线| 亚洲人妖av一区二区| 欧洲一区在线电影| 日本系列欧美系列| 国产激情一区二区三区| 亚洲欧洲99久久| 欧美亚日韩国产aⅴ精品中极品| 首页国产欧美久久| 久久精品欧美一区二区三区麻豆| 成人精品gif动图一区| 一区二区免费视频| 日韩欧美一区二区久久婷婷| 国产黄色精品视频| 亚洲国产成人av网| 精品国产91乱码一区二区三区| 国产成a人亚洲| 夜夜嗨av一区二区三区| 欧美一二区视频| 成人成人成人在线视频| 亚洲第一激情av| 久久这里都是精品| 日本精品裸体写真集在线观看| 老司机精品视频一区二区三区| 国产亚洲欧美色| 欧美日韩中文字幕精品| 国产精品91xxx| 91蜜桃视频在线| 色婷婷国产精品久久包臀 | 日韩精品中文字幕一区二区三区 | 久久久久久久久久久电影| 99久久精品国产精品久久| 日韩成人精品视频| 亚洲丝袜另类动漫二区| 欧美成人伊人久久综合网| 一本色道久久综合精品竹菊| 国产在线视视频有精品| 午夜精品影院在线观看| 国产欧美日韩精品a在线观看| 3d成人h动漫网站入口| 色天使色偷偷av一区二区| 极品美女销魂一区二区三区| 亚洲福利视频导航| 亚洲天堂中文字幕| 久久你懂得1024| 4hu四虎永久在线影院成人| 色天天综合色天天久久| 风间由美中文字幕在线看视频国产欧美| 天堂在线亚洲视频| 一区二区国产视频| 亚洲欧美偷拍三级| 国产精品久久久久久久久免费丝袜 | 亚洲一区在线视频观看| 中文字幕免费观看一区| 欧美激情在线一区二区| 欧美一级xxx| 欧美一区二区在线播放| 欧美精品xxxxbbbb| 欧美日韩一卡二卡三卡| 在线免费观看日韩欧美| 99国产精品久久久久久久久久久| 国产精品一卡二| 国产美女精品一区二区三区| 国产一区欧美一区| 国产精品一区二区久久不卡| 国产在线精品一区二区不卡了| 久久精品国产精品亚洲精品| 毛片一区二区三区| 精品一区二区日韩| 国产麻豆成人精品| 顶级嫩模精品视频在线看| 国产高清在线观看免费不卡| 国产成+人+日韩+欧美+亚洲| 国产福利电影一区二区三区| k8久久久一区二区三区| av在线不卡网| 色94色欧美sute亚洲线路一ni| 亚洲自拍偷拍麻豆| 亚洲成av人片一区二区| 五月天亚洲精品| 日本一道高清亚洲日美韩| 久久99国产精品麻豆| 韩国一区二区视频| 亚洲精品视频在线看| 亚洲大型综合色站| 日本欧美肥老太交大片| 国模少妇一区二区三区| 99久久精品免费看国产| 欧美日韩一区在线观看| 欧美电影免费观看高清完整版在 | 一区二区三区精品在线| 五月激情六月综合| 韩国女主播一区| 91在线一区二区| 欧美日本免费一区二区三区| 日韩精品一区二区三区老鸭窝| 久久精品视频网| 欧美日韩视频在线观看一区二区三区| 欧美精品vⅰdeose4hd| 国产欧美一区二区精品性色| 亚洲人快播电影网| 老司机精品视频在线| 91视频一区二区三区| 日韩欧美中文字幕制服| 国产精品不卡一区二区三区| 一区二区三区成人| 国产老肥熟一区二区三区| 色婷婷久久久久swag精品| 日韩免费电影一区| 18欧美乱大交hd1984| 久久久久久久久久看片| 中文字幕一区在线| 日本成人在线网站| 99精品欧美一区二区三区小说 | 精品一区在线看| 色呦呦网站一区| 欧美精品一区二区三区蜜臀| 中文字幕欧美国产| 图片区小说区国产精品视频| 亚洲天堂2014| 狠狠色狠狠色合久久伊人| 欧美日韩中文字幕一区二区| 国产精品久久久一本精品| 美女在线观看视频一区二区| 99re视频精品| 日韩精品一区二区三区在线| 一区二区三区久久| 成人午夜电影网站| 欧美成人a在线| 亚洲国产成人av好男人在线观看| 成人精品视频一区| 久久久久久久久97黄色工厂| 日本午夜一区二区| 五月婷婷久久丁香| 99re成人精品视频| 欧美激情一区三区| 国内精品写真在线观看| 91精品国产91久久久久久一区二区| 亚洲欧美日韩久久| 成人av网址在线| 国产欧美日韩在线| 国产成人av电影在线播放| 日韩精品一区二区三区蜜臀| 麻豆精品一区二区综合av| 欧美日韩dvd在线观看| 一区二区三区四区高清精品免费观看| 99久久综合国产精品| 色综合久久久久久久久久久|