原创 替換應用程序exe圖標
2010-11-10 21:26:14 //替換應用程序exe圖標,主要使用的API函數是BeginUpdateResource(),UpdateResource(),EndUpdateResource()來使//用自定義的ico文件類
原创 創建桌面快捷方式和開始啓動項
2010-11-10 21:31:46 #include <afx.h>#include<direct.h>#include<stdlib.h>#include "Shlwapi.h"#include <Tlhelp32.h>#prag
原创 網卡禁用和啓用
2010-11-10 21:34:23 #include <stdio.h>#include <windows.h>//#include "Setupapi.h"//#include "objbase.h"#include <setup
原创 VC常用控件介紹
2010-11-10 21:36:55 斷點設置F9,取消所有斷點 Ctrl+Shift+F9設置TAB順序,Ctrl+D快捷鍵//調整多個控件大小相同,居中顯示選擇要設置的多個控件,選擇"佈局"選項//彈出的對話框//AfxMessa
原创 VBScript獲取電腦用戶名-IP-MAC
'獲取電腦名稱MsgBox CreateObject("Wscript.Network").computername '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
原创 smtp發郵件(C#)
using System.Net; //WebRequest&WebResponseusing System.Net.Mail; //Mailusing System.IO; //Fileusing Syste
原创 映射網絡磁盤(VC)
//映射網絡磁盤void CTestDlg::OnButton5() { system("net use z: /del"); //刪除之前映射的盤符 CString HostName,UserName,Password;
原创 VB腳本刷點擊量
Dim k k=0Set Wshell=WScript.CreateObject("WScript.Shell")AppName="頁面刷新"Set ie=WScript.CreateObject("InternetExplorer.Ap
原创 VC自動提交表單(提交按紐不是submit控件)
#include <windows.h>//引用HTML相關頭文件#include <atlbase.h>CComModule _Module; #include <mshtml.h> #include <atlcom.h>#in
原创 縱向伸縮對話框(VC)
// WebTestDlg.h : header fileclass CWebTestDlg : public CDialog{ BOOL m_bExpand; int m_bExpandedHeight; LONG m_bNormalH
原创 VC下獲取各個驅動器路徑-分類及其獲取其信息
1.獲取所有的驅動器利用函數GetLogicalDriveStrings The GetLogicalDriveStrings function fills a buffer with strings that specify valid
原创 MFC自繪標題
//自繪標題void CSkinDlg::DrawTitleBar(CDC *pDC){ CDC memDC; CBitmap bmp; CRect rect, rtTitle; CPoint point;
原创 進程只被實例化一次(VC)
//=============================================================//skin.exe只運行一個實例//根據窗體標題判斷程序是否已經啓動BOOL CSkinApp::InitIn
原创 QQ2008文本消息羣發工具
#include "winuser.h"#include "stdio.h"#include "windows.h"#include "afxmt.h"#include "winbase.h"#include <string>using
原创 VC最小化到托盤程序
在實際操作電腦的過程中,我們常常可以看到一些應用程序可以最小化到桌面右下角的托盤中顯示,如一些殺毒軟件等開機就顯示在托盤中,或是我們常用的QQ等聊天工具,都可以最小化在托盤中,如圖-1。 在圖-1中,可以看到第一個服務器樣式的圖標