自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

QT

个人代码开源

  • 博客(13)
  • 资源 (2)
  • 收藏
  • 关注

原创 Non-model Dialog

// in parent windowvoid CTIH_WMXDlg::OnBnClickedButtonNewdialog(){ if( NULL == m_pSubDlg ) { // create a non-model dialog and show window. m_pSubDlg = new Sub(this); m_pSubDlg->Create

2009-09-13 22:02:00 384

原创 User Defined Window Messages

// in .h file#define WM_MSGONTRAY (WM_USER + 100) //Message Definedafx_msg LRESULT OnNotifyIcon(WPARAM wParam, LPARAM lParam);// You should using LRESULT(return value) (WPARAM wParam, LPARAM lP

2009-09-13 21:36:00 386

原创 Draw Something on Your Personal Window

// Output TextVOID OnDraw(HWND hWnd, HDC hdc){ //使用HDC,PEN, HBRUSH...必须DELETE COLORREF ordCol = SetTextColor(hdc, RGB(255, 0, 0)); // sets the text color for the specified device context to t

2009-09-04 21:06:00 504

原创 Something about CMenu

VOID setWindowOnMenuTopMost(HWND hWnd, int iMenu, int iPos){ HMENU hMenu = GetMenu(hWnd); HMENU hSubMenu = GetSubMenu(hMenu, iMenu); UINT uID = GetMenuItemID(hSubMenu, iPos); ASSERT( uI

2009-09-04 20:04:00 443

原创 QuickSort

void QuickSort(int iArray[], int low, int high){ if( low < high ) { int n = Partition(iArray, low, high); QuickSort(iArray, low, n); QuickSort(iArray, n + 1, high); }}int Partit

2009-09-04 19:59:00 382

原创 WIN32 Application Demo

// Win32.cpp : Defines the entry point for the application.//#include "stdafx.h"#include "Win32.h"#define MAX_LOADSTRING 100// Global Variables:HINSTANCE hInst; // current global in

2009-09-01 20:45:00 478

原创 WIN32: Open a Application

int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow){ HWND hCalculator = ::FindWindow(NULL, CALCULATOR_WINDOWSNA

2009-08-20 22:12:00 377

原创 OnTimer

WIN API: UINT_PTR SetTimer( HWND hWnd, //Handle to the window to be associated with the timer UINT_PTR nIDEvent, //Specifies a nonzero timer identifier UIN

2009-08-20 21:11:00 1978

原创 String Table

使用String Table 来维护String 可以非常的轻松。 CString m_valueName;m_valueName.LoadString(IDS_STRING_TITLE_EN); // IDS_STRING_TITLE_EN : tablestring IDUpdateData(FALSE); 只用修改String Table 中的String即可。

2009-08-19 22:52:00 825 1

原创 Draw Personal BitMap

CPaintDC pDC(this);DrawBitmap(&pDC);//**************************// explicit CPaintDC( CWnd* pWnd );// // CPaintDC : A device-context class derived from CDC. // //************************

2009-08-19 21:22:00 672

原创 SetFocus()

使用 Button 来实现 keyboard ‘Tab’ 功能。 //! Current button positionint m_iPos;//! Button tabsCWnd* m_pWnd[3];CMoveTabDlg::CMoveTabDlg(CWnd* pParent /*=NULL*/) : CDialog(CMoveTabDlg::IDD, pParen

2009-08-18 21:35:00 5722

转载 Dynamic Link Libraries

引言比较大的应用程序都由很多模块组成,这些模块分别完成相对独立的功能,它们彼此协作来完成整个软件系统的工作。可能存在一些模块的功能较为通用,在构造其它软件系统时仍会被使用。在构造软件系统时,如果将所有模块的源代码都静态编译到整个应用程序 EXE文件中,会产生一些问题:一个缺点是增加了应用程序的大小,它会占用更多的磁盘空间,程序运行时也会消耗较大的内存空间,造成系统资

2009-08-09 20:47:00 398

原创 When does IsIconic() work?

void CAboutDlg::OnPaint(){ // This code, normally emitted by the Application Wizard for a dialog- // based project for the dialogs WM_PAINT handler, runs only if the // window is iconi

2009-08-04 22:32:00 428

myPlayer 1.0.1

Ubuntu下QT4.6.3 使用Phonon多媒体框架开发,放出源代码仅供初学者学习

2010-08-20

Effective C++ Third Edition (CHM)

Effective C++ Third Edition 55 Specific Ways to Improve Your Programs and Designs By Scott Meyers translates by hjj. 必属精品。

2009-08-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除