- Jan 22 Wed 2014 10:41
-
【C++ 隨手小記】MFC 視窗背景色
- Jan 15 Wed 2014 16:41
-
【C++ 隨手小記】MFC 重構元件
1. 在Create() 時的Style要加上 BS_OWNERDRAW
2. 在Class中加上 virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
3. 在cpp 檔中繪製元件 <--- 從網路上找的
void CTvButton::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
{
- Jan 02 Thu 2014 14:59
-
【C++ 隨手小記】raw socket in win7
- Sep 13 Fri 2013 16:16
-
【C++ 懶人用法】取得JPEG的RGB
#include <windows.h>
#pragma comment( lib, "gdiplus.lib" )
#include <gdiplus.h>
using namespace Gdiplus;
int GetEncoderClsid(const WCHAR* format, CLSID* pClsid)
- Sep 13 Fri 2013 09:27
-
【C++ 懶人用法】MFC 貼 JPEG 方法 (網路上找到的)
LPPICTURE gpPicture;
void C169Dlg::ShowPicture(CDC *pDC, CString m_strBRoute, int x, int y, int width, int height)
{
HANDLE hFile =CreateFile(m_strBRoute, GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL);
_ASSERTE(INVALID_HANDLE_VALUE != hFile);
- Sep 19 Wed 2012 16:39
-
c++ socket - Broadcast sendto + recvfrom
- May 15 Tue 2012 08:27
-
MFC Webbrowser on dialog
1. 先要有 webbrowser2.cpp/.h 檔
2. 在Webbrowser的Dialog加上下列code
BEGIN_MESSAGE_MAP(CWebDlg, CDialog)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
- Apr 11 Wed 2012 00:56
-
【C++ 懶人用法】製作及使用 Dll
- Feb 29 Wed 2012 17:05
-
【Android 懶人用法】Sleep 用法
- Feb 27 Mon 2012 15:19
-
【Android 懶人用法】將Integer值放上EditText
這也是寫給我自已看的 XDD
記得一定要改為String...
EX : EditText.setText(Integer.toString(Value));
that'all ~
- Feb 26 Sun 2012 12:07
-
【C++ 懶人用法】MFC Picture Control 顯示bmp圖片
Picture control 中顯示 bitmap 的用法 (寫給我自已看的...)
1. 拉Picture 元件 並且更改 ID (因預設是用 CStatic,所以要改為別的名字)
2. 用 HBITMAP class 去宣告並定義要載入的圖檔 位置、大小...等
EX :
HBITMAP hBitmap1 = (HBITMAP)LoadImage(NULL,_T(".\\\DataFile\\Picture\\mail.bmp"),IMAGE_BITMAP,512,256,LR_LOADFROMFILE);
- Feb 19 Sun 2012 14:37
-
【C++ 懶人用法】MFC 中建立一個日曆

如何在 MFC 中建立一個日曆
1. include "afxdtctl.h" <------- 這個是包含CMonthCalCtrl的header檔
2. 用 CMonthCalCtrl 來宣告出一個變數
EX : CMonthCalCtrl *m_clsMonth;
3. 給這個變數 memory space