预览模式: 普通 | 列表
08-09
16

千寻网络影视程序自动获取影片资料并入库演示

08-11
06

VC 获得系统当前日期

CTime   t=CTime::GetCurrentTime();  
  CString   time=t.Format("%Y-%m-%d-%H:%M:%S");

查看更多...

分类:凌晨杂货 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 20
08-10
26

vc 界面设设计器尺寸与实际尺寸的关系

在VC 界面设计的时候 右下角显示的和在屏幕上的并不相等 公式如下:

WidthReal   = (WidthMarked + 3) * 2

HeightReal = HeightMarked * 2 + 30

查看更多...

Tags: vc 界面尺寸

分类:凌晨杂货 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 34
08-10
26

vc PictureEx 类 显示图片

以DLG 为例

1、在XXDLG.CPP中 加入 #include "PictureEx.h"

2、在对话框 加入Picture Control控件 ID 为IDC_IMG ;type 为Rectangle

     为Picture Control添加变量 m_img  类型为CPictureEx

查看更多...

Tags: vc PictureEx vc 图片

分类:凌晨杂货 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 37
08-10
26

VC++ GIF,JPEG, BMP, WMF, ICO, CUR 图片显示

//////////////////////////////////////////////////////////////////////

///////////////////PictureEx.h//////////////////////
// PictureEx.cpp: implementation of the CPictureEx class.
//
// Picture displaying control with support for the following formats:
// GIF (including animated GIF87a and GIF89a), JPEG, BMP, WMF, ICO, CUR
//
// Written by Oleg Bykov (
oleg_bykoff@rsdn.ru)
// Copyright (c) 2001
//
// To use CPictureEx, follow these steps:
//   - place a static control on your dialog (either a text or a bitmap)
//   - change its identifier to something else (e.g. IDC_MYPIC)
//   - associate a CStatic with it using ClassWizard
//   - in your dialog's header file replace CStatic with CPictureEx
//     (don't forget to #include "PictureEx.h" and add
//     PictureEx.h and PictureEx.cpp to your project)
//   - call one of the overloaded CPictureEx::Load() functions somewhere
//     (OnInitDialog is a good place to start)
//   - if the preceding Load() succeeded call Draw()
// 
// You can also add the control by defining a member variable of type
// CPictureEx, calling CPictureEx::Create (derived from CStatic), then
// CPictureEx::Load and CPictureEx::Draw.
//
// By default, the control initializes its background to COLOR_3DFACE
// (see CPictureEx::PrepareDC()). You can change the background by
// calling CPictureEx::SetBkColor(COLORREF) after CPictureEx::Load().
//
// I decided to leave in the class the functions to write separate frames from
// animated GIF to disk. If you want to use them, uncomment #define GIF_TRACING
// and an appropriate section in CPictureEx::Load(HGLOBAL, DWORD). These functions
// won't be compiled and linked to your project unless you uncomment #define GIF_TRACING,
// so you don't have to worry.
//
// Warning: this code hasn't been subject to a heavy testing, so
// use it on your own risk. The author accepts no liability for the
// possible damage caused by this code.
//
// Version 1.0  7 Aug 2001
//              Initial release
//
// Version 1.1  6 Sept 2001
//              ATL version of the class
//
// Version 1.2  14 Oct 2001
//              - Fixed a problem with loading GIFs from resources
//                in MFC-version of the class for multi-modules apps.
//                Thanks to Ruben Avila-Carretero for finding this out.
//
//              - Got rid of waitable timer in ThreadAnimation()
//                Now CPictureEx[Wnd] works in Win95 too.
//                Thanks to Alex Egiazarov and Wayne King for the idea.
//
//              - Fixed a visual glitch of using SetBkColor.
//                Thanks to Kwangjin Lee for finding this out.
//
// Version 1.3  10 Nov 2001
//              - Fixed a DC leak. One DC leaked per each UnLoad()
//                (forgot to put a ReleaseDC() in the end of
//                CPictureExWnd::PrepareDC() function).
//
//              - Now it is possible to set a clipping rectangle using
//                CPictureEx[Wnd]::SetPaintRect(const LPRECT) function.
//                The LPRECT parameter tells the class what portion of
//                a picture should it display. If the clipping rect is
//                not set, the whole picture is shown.
//                Thanks to Fabrice Rodriguez for the idea.
//
//              - Added support for Stop/Draw. Now you can Stop() an
//                animated GIF, then Draw() it again, it will continue
//                animation from the frame it was stopped on. You can
//                also know if a GIF is currently playing with the
//                IsPlaying() function.
//            
//              - Got rid of math.h and made m_bExitThread volatile.
//                Thanks to Piotr Sawicki for the suggestion.
//   
http://www.gjwtech.com/vcandc/vc1loadgifpicture.htm
//  
http://www.codeproject.com/KB/graphics/pictureex.aspx?df=100&forumid=2691&exp=0&select=1026469

//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PICTUREEX_H__0EFE5DE0_7B68_4DB7_8B34_5DC634948438__INCLUDED_)
#define AFX_PICTUREEX_H__0EFE5DE0_7B68_4DB7_8B34_5DC634948438__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

查看更多...

Tags: VC图片

分类:凌晨杂货 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 18
08-10
23

显摆一个!我的移动装备!

整天在外面跑,用的手机也换了N个了。下面给大家看看。都是经典,至少是过去的经典。
随便纪念一下他们。
准备败一个苹果了。让他们沉睡吧|!
从左到右 依次是 黑莓7290   多普达838  奔迈680   多普达D600

查看更多...

分类:日記┊碎碎念念 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 139
08-10
06

海蜘蛛软路由动画教程+免费版下载

海蜘蛛软路由动画教程



查看更多...

Tags: 海蜘蛛 路由 动画 教程 免费 下载

分类:學習┊教程基地 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 182
08-10
02

网吧主页开发中-首页预览图(待细化)

分类:动态┊本站動態 | 固定链接 | 评论: 1 | 引用: 0 | 查看次数: 232