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

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

?? mod_rssim.cpp

?? 用于開發Modbus工業級通信
?? 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一区二区三区免费野_久草精品视频
亚洲特黄一级片| 国产精品一区一区三区| 麻豆精品蜜桃视频网站| 黄页网站大全一区二区| 美女任你摸久久| 成人小视频免费在线观看| 色偷偷成人一区二区三区91| 在线观看不卡一区| 精品毛片乱码1区2区3区| 国产精品亲子伦对白| 亚洲 欧美综合在线网络| 国产福利一区在线| 欧美日韩高清影院| 日本sm残虐另类| 成人高清av在线| 欧美精品免费视频| 欧美精选午夜久久久乱码6080| 久久亚洲私人国产精品va媚药| 亚洲一区二区三区在线播放| 国内成人自拍视频| 欧美视频在线观看一区| 国产丝袜在线精品| 性感美女久久精品| www.日韩在线| 精品对白一区国产伦| 亚洲一区免费视频| 免费观看久久久4p| 丁香婷婷综合色啪| 日韩视频免费观看高清完整版| 亚洲精品中文在线| 国产麻豆一精品一av一免费| 欧美日韩高清在线| 成人免费一区二区三区视频| 麻豆国产精品官网| 欧美日韩免费视频| 综合久久综合久久| 高清成人在线观看| 欧美岛国在线观看| 亚洲mv在线观看| 一本大道久久a久久精二百| 久久精品夜夜夜夜久久| 婷婷久久综合九色国产成人 | 欧美剧情片在线观看| 日本一区二区动态图| 理论片日本一区| 欧美军同video69gay| 国产精品久久久久久久久久免费看| 日本不卡高清视频| 欧美综合欧美视频| 亚洲免费观看高清完整版在线观看熊| 国产不卡视频在线播放| 亚洲成在人线在线播放| 91激情五月电影| 亚洲欧洲性图库| 成人三级伦理片| 国产欧美一区二区三区沐欲| 国内精品自线一区二区三区视频| 欧美一级在线观看| 日产国产高清一区二区三区| 欧美日本精品一区二区三区| 亚洲成人动漫av| 欧美日韩综合一区| 亚洲一级电影视频| 欧美在线999| 亚洲图片欧美一区| 欧美亚洲免费在线一区| 一二三区精品视频| 在线观看亚洲a| 亚洲一级在线观看| 欧美日韩不卡视频| 午夜精品福利视频网站| 欧美军同video69gay| 日韩在线观看一区二区| 欧美一级在线免费| 久草中文综合在线| 久久久久亚洲蜜桃| 成人少妇影院yyyy| 亚洲欧美日韩中文字幕一区二区三区 | 成人精品一区二区三区中文字幕| 国产欧美日韩亚州综合| 成人综合激情网| 亚洲欧美日韩在线播放| 在线视频你懂得一区二区三区| 亚洲一区二区3| 日韩一级完整毛片| 国产一区二区三区日韩| 国产精品理论在线观看| 一本色道久久综合精品竹菊| 一区二区三区不卡视频在线观看 | 日韩国产高清在线| 日韩欧美激情在线| 国产精品综合视频| 国产精品国产三级国产普通话99 | 久久综合久久久久88| 国产精品一色哟哟哟| 中文字幕一区二区三| 欧美激情一区不卡| 91视频在线观看| 五月激情六月综合| 久久丝袜美腿综合| 成人av高清在线| 亚洲国产另类av| 精品日韩在线观看| 成人深夜在线观看| 五月婷婷激情综合网| 精品国产青草久久久久福利| 不卡的av电影在线观看| 亚洲一区二区欧美| 精品福利一二区| 国产不卡免费视频| 亚洲一区视频在线| 精品国产sm最大网站| 99精品视频免费在线观看| 午夜精品视频在线观看| 久久久天堂av| 欧美日韩一级二级三级| 国产一区在线观看视频| 亚洲精品视频免费看| 日韩精品一区二区三区在线观看| 成人av网站在线观看免费| 日韩av午夜在线观看| 国产精品女同一区二区三区| 欧美老肥妇做.爰bbww视频| 国产成人免费9x9x人网站视频| 亚洲一区二区黄色| 国产免费久久精品| 欧美美女激情18p| 成人理论电影网| 美女视频免费一区| 一区二区三区精品在线| 欧美精品一区二区久久久| 在线免费观看一区| 国产一区久久久| 亚洲激情欧美激情| 国产日产亚洲精品系列| 91精品欧美福利在线观看| 99国产精品国产精品毛片| 狠狠狠色丁香婷婷综合久久五月| 一区av在线播放| 国产精品久久久久一区二区三区| 日韩午夜电影在线观看| 色久综合一二码| 国产成人精品一区二| 蜜桃视频第一区免费观看| 一区二区高清视频在线观看| 国产精品日日摸夜夜摸av| 精品久久久三级丝袜| 欧美另类久久久品| 色综合久久久久综合体| 成人午夜电影网站| 欧美唯美清纯偷拍| 国产91丝袜在线18| 日韩高清不卡一区二区| 亚洲精品伦理在线| 国产精品剧情在线亚洲| 久久精品夜色噜噜亚洲a∨| 欧美一区日本一区韩国一区| 在线视频一区二区免费| 99久久精品久久久久久清纯| 国产精品一区2区| 精品中文字幕一区二区小辣椒| 日韩成人一区二区| 亚洲va欧美va国产va天堂影院| 樱花影视一区二区| 亚洲丝袜精品丝袜在线| 国产精品成人网| 欧美高清在线精品一区| 国产三级精品三级| 久久精品一区二区| 精品国产91洋老外米糕| 欧美电影免费观看完整版| 欧美一区二区三区四区久久| 777色狠狠一区二区三区| 色呦呦国产精品| 在线观看亚洲a| 色欧美88888久久久久久影院| 成人黄色大片在线观看| 国产一区二区三区四 | 久久久三级国产网站| 欧美三级电影网| 色婷婷综合久久久| 91久久一区二区| 欧美亚洲高清一区| 欧美吞精做爰啪啪高潮| 欧美日韩黄视频| 制服丝袜亚洲色图| 日韩欧美黄色影院| 成人av动漫在线| 色综合久久久久网| 欧美色视频一区| 欧美二区三区的天堂| 欧美一区二区三区视频免费| 日韩免费电影一区| 久久伊人中文字幕| 国产精品沙发午睡系列990531| 中文字幕一区二区三区不卡在线 | 精品视频一区二区不卡| 制服丝袜激情欧洲亚洲| 2020国产精品自拍| 国产精品欧美经典|