Coder Social home page Coder Social logo

myprogresswidget's Introduction

My Progress Wizard

Tip: The name of the project is a wrong-spelling (but I am too lazy to correct it). The correct name is "My Progress Widget".

Features

  • Create a progress widget without writing a basic window
  • Thread safe (maybe?)
  • Object-Handle managing
  • Allow multiple instances
  • The UI runs in a different thread so it still work even if the main thread is blocked
  • Custom cancel handling
  • Extensible custom attributes
  • etc...

How to use

  1. Add the .lib file to your project.
  2. Include "wizard.user.h" in your project.
  3. Use the functions.

Tip: The .lib file uses /MT option. If your project is /MD, you can either compile the project yourself or change your project's config.

Usage

I'm lazy so I don't want to write a help document. Instead, you can view the project "ZExampleProj-DeleteDirectoryContent" to know the basic usage of it.

Example

A short example to create a simple progress bar:

#include <Windows.h>
#pragma comment(lib, "MyProgressWizardLib64.lib")
#include "wizard.user.h"

using namespace std;

int main(int argc, char* argv[])
{
	InitMprgComponent(); // remember to init
	HMPRGOBJ hObj = CreateMprgObject();
	assert(hObj);
	HMPRGWIZ hWiz = CreateMprgWizard(hObj, MPRG_CREATE_PARAMS{
		.cb= sizeof(MPRG_CREATE_PARAMS),
	});
	assert(hWiz);
	OpenMprgWizard(hWiz);

    // do things you want...



	DestroyMprgWizard(hObj, hWiz);
	DeleteMprgObject(hObj);
	return 0;
}

License

The project My Progress Wizard is licensed under MIT license. However, you shouldn't publish it to CSDN.

Author: shc0743

myprogresswidget's People

Contributors

shc0743 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.