原创 獲取對話框大小

CRect   rect;    GetClientRect(&rect);    int  cx=rect.Width();    int  cy=

原创 WinCE 中寫字的函數

Platform Builder for Microsoft Windows CE 5.0   DrawText See Also ExtTextOut | RECT Requirements OS Versions: Win

原创 關於畫圖

Writes a character string at the specified location using the currently selected font.   virtual BOOL TextOut( in

原创 關於全屏

1.win 2000/xp中 //---加在BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)中----------------- cs.style=WS_POPUP;cs.x = 0;c

原创 關於透明

1.透明矩形的繪製CRect* pRect; pRect  = new CRect(0,0,20,20); dc.SelectStockObject(NULL_BRUSH); dc.Rectangle(pRect);  點贊

原创 靜態變量使用方法

// static_member_functions.cpp #include <stdio.h> class StaticTest { private: static int x; public: static int

原创 actionscript3 Date(日期)

Package Top Level Class     public final dynamic class Date Inheritance Date->ObjectLanguage Version: ActionScript 3.0

原创 關於std::fstream以及std::ifstream打開中文路徑名失敗的問題和解決方法

碰到的問題:      今天碰到這個問題了,是在使用Crypto++庫的時候遇到的,該庫操作文件是使用的std::ifstream。在我給文件生成簽名的時候,每每碰到中文路徑名就出錯,後來跟進庫代碼一看是打開文件的時候出錯。據說這個問題在

原创 A Way to implement Abstract Class In Flex

A Way to implement Abstract Class In Flex It’s a fact that, until now(3.0) the ActionScript doesn’t implement the abst

原创 Implement the Singleton In AS3

Implement the Singleton In AS3 The following example implement the Singleton In AS3 at the run-time.I don’t know if th

原创 About the drawing

About the drawing 1.       Flex繪圖可以使用flash.display.Graphics繪圖。 Graphics 類擁有一系列的函數創建向量圖形。Display 對象可以支持Sprite和Shape對象的繪

原创 About the drawing

About the drawing 1.       Flex繪圖可以使用flash.display.Graphics繪圖。 Graphics 類擁有一系列的函數創建向量圖形。Display 對象可以支持Sprite和Shape對象的繪

原创 關於AdvancedDataGrid的header的數據傳遞

默認的情況下,表頭會寫headerText屬性的文字,但是有時候想customize header就得用到AdvancedDataGridColumn.headerRender屬性,這時候可以自己實現一個headerRender,但是數據

原创 反射機制的研究

在某些情況下需要通過配置文件來獲取類名進而進行實例化。 <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006

原创 去除AdvancedDataGrid的header裏的sort豎線

通過AdvancedDataGrid的headerSortSeparatorSkin的屬性設置可以改變其head SortSaparator的樣式,默認爲undifined,設置成mx.skins.ProgrammaticSkin可以消除