⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mydll.cpp

📁 中國式報表,PowerBuilder8.0環境
💻 CPP
字号:
// MyDll.cpp : Defines the entry point for the DLL application.
//

#include "stdafx.h"

extern "C"  


BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
    return TRUE;
	
}

/*---------------------------------------------------------------------------------------------
   函数:   OwnerDraw(HWND  hwnd)

   功能:   设置指定窗口(对象)为自绘制形式
        
   参数:   

   返回值:


   说明:当前函数应用于PB中的n_CommandButton对象的Construtor事件,用于设置按钮为自绘制

------------------------------------------------------------------------------------------------*/
void WINAPI OwnerDraw(HWND hwnd)
{
  SetWindowLong(hwnd,GWL_STYLE,GetWindowLong(hwnd,GWL_STYLE)|BS_OWNERDRAW);
}




BOOL WINAPI  CheckVScrollBar(HWND  hwnd)
{
    return (GetWindowLong( hwnd,GWL_STYLE) & WS_VSCROLL)!=0  ;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -