MobiNav

All Things Mobility

mai 23rd, 2013

CDC Project managements templates

A set of project management templates of Centers for Disease Control and Prevention is availabe from the CDC’s website.

mai 23rd, 2013

Project management templates

This is a complete list of the Oregon Department of Human Services project management templates. (Credit: Dr. Peter von Stackelberg’s MOOC: « Project Management for Business Professionals »)

Project Initiation

Project Requirements

Project Scope

Work Breakdown Structure (WBS)

Project Activities & Milestones

Project Costs

Project Quality

Project Human Resources

Project Communication

Project Risk

Project Management for Business Professionals

juin 30th, 2010

Visual Studio: memory leak detection

A useful preprocessor _CRTDBG_MAP_ALLOC which gives more information about the memory leak. (more>>)

avril 21st, 2009

CPPToolTip v2.1

A class that allows you to display your data for a control as tooltip. written by Eugene Pustovoyt and published in Codeproject.  Very cool.

Features

  • Standard and balloon tooltip
  • Built-in HTML-lite language for a tooltip
  • Built-in support for CSS styles
  • Built-in support for menus and toolbars
  • Support for any size icons (max. 256 colors)
  • Support for bitmaps
  • Support for ImageList
  • Load icons, bitmaps and strings from resources, DLLs or files
  • Support Fade-in and Fade-out effects
  • Support for gradient shadow for tooltip and images
  • Support for applies miscellaneous effects over the any images (lighten, darken, grayed)
  • Support for hyperlinks
  • Support for hot areas
  • Support for tables
  • Support for CScrollView
  • Extended <br> and <t> tags
  • Extended resource strings for the menu and toolbars items
  • Every size can be customized
  • Change runtime a tooltip’s text
  • Implemented a Debug Mode (an idea from www.tooltips.net site with Vitaly Tomilov‘s permission)
  • Support for an animation – NEW in v2.1
  • Support a text wrapping – NEW in v2.1
  • Full source code included!
janvier 7th, 2009

How to get Google Map Image by Google API

An example can be found in Perry Bruins’ article « Track your position using a Windows Mobile 6 device« .

décembre 23rd, 2008

An Anti_Reverse Engineering Guide

A great article in CodeProject by Hosh Jackson who gave a look at into the area of preventing reserse engineering.

décembre 18th, 2007

Using Visual Styles with Owner-Drawn Controls

Source: msdn

This topic describes the use of the visual styles API to create custom controls or owner-drawn controls that take advantage of the visual styles available in Microsoft Windows XP and later versions of the operating system.

First your application should determine whether visual styles are available, by calling IsAppThemed. If visual styles are not available, use fallback code to draw the control.

If visual styles are available, you can use visual-styles functions such as DrawThemeText to render your control. Note that DrawThemeTextEx enables you to customize the appearance of text, retaining some properties of the theme font while modifying others.

To draw a control in the current visual style

  1. Call OpenThemeData, passing the hwnd of the control you want to apply visual styles to and a class list that describes the control’s type. The classes are defined in Vssym32.h. OpenThemeData returns an HTHEME handle, but if the visual styles manager is disabled or the current visual style does not supply specific information for a given control, the function returns NULL. If the return value is NULL, use non-visual-styles drawing functions.
  2. To draw the control background, call DrawThemeBackground or DrawThemeBackgroundEx.
  3. To determine the location of the content rectangle, call GetThemeBackgroundContentRect.
  4. To render text, use either DrawThemeText or DrawThemeTextEx, basing the coordinates on the rectangle returned by GetThemeBackgroundContentRect. These functions can render text either in the theme’s font for a specified control part and state, or in the font currently selected into the device context (DC).
  5. When your control receives a WM_DESTROY message, call CloseThemeData to release the theme handle that was returned when you called OpenThemeData.

Responding to Theme Changes
When your control receives a WM_THEMECHANGED message and is holding a global handle to the theme, it should do the following:

  • Call CloseThemeData to close the existing theme handle.
  • Call OpenThemeData to get the theme handle to the newly loaded visual style.
octobre 24th, 2007

Wifi scanner + custom MFC controls

Good job on customizing MFC controls. See it at codeproject.

Related works:

août 23rd, 2007

Changing volume’s serial number

See Codeproject

août 23rd, 2007

Hard Disk serial number

[source:Cprogramming]

you could check out DispHelper, especially the wmi.c sample. DispHelper allows you to use the WMI scripting interfaces, which are vastly easier to use than the C/C++ interfaces.

This is a simple sample to show how to get drive serial numbers.

 

Read the rest of this entry »