2007年8月15日 星期三

DHTML Events

oncontextmenu="return false"
ondragstart="return false"
onselectstart ="return false"
onselect="document.selection.empty()"
oncopy="document.selection.empty()"
onbeforecopy="return false"
onmouseup="document.selection.empty()"

其中 return false 就是將事件功能取消
oncontextmenu 滑鼠右鍵功能
ondragstart Drag 功能
onselectstart 選取功能
onselect 選取功能
oncopy 複製功能
onbeforecopy 複製到剪貼簿功能
onmouseup 滑鼠釋放按鍵功能
Ref:

http://msdn2.microsoft.com/en-us/library/ms533051.aspx

標籤:

2007年8月10日 星期五

WOSA / XFS Architecture

Windows Open Services Architecture,
Extensions for Financial Services

ATMC <-> API <-> XFS Manager

標籤:

2007年8月7日 星期二

使用 __declspec(dllimport) 匯入至應用程式

#if defined(EXPORTS)
#define _class_porting_ __declspec(dllexport) /* DLL export */
#else
#define _class_porting_ __declspec(dllimport) /* DLL import */
#endif

class _class_porting_ ClassDLLPorting
{
public:
ClassDLLPorting();
~ClassDLLPorting();
};

Ref:
http://msdn2.microsoft.com/zh-tw/library/8fskxacy(VS.80).aspx

標籤:

2007年8月1日 星期三

Read / Write INI file

CString cResString;
int value = 0;

// read string
DWORD dwResult = GetPrivateProfileString("section", "key", "return", cResString.GetBuffer(MAX_PATH), MAX_PATH,"Section.ini");

// read integer
value= GetPrivateProfileInt("section", "value", 0, "Section.ini");

// write string
WritePrivateProfileString("section", "key",cResString,"Section.ini");

Section.ini
[section]
key=string
value=100

Ref:
http://support.microsoft.com/kb/90988

標籤: