Results for "Category: Files/ File Controls/ Input/ Output"
This source code will show you how to setup your program to be able to minimize to the system tray, or to make a program that runs from the system tray. Shows how you can make a menu (not from resource), and then have it popup when they right click, or double click the icon in the system tray. Fully commented so you can understand.
A small app that demonstrates the use of accelerators. (Win32 api code, no MFC or VCL)
How to use 'Regions' to create different shaped windows.
Demonstrates how to make a hyperlink, no subclassing or mouse capturing, and the result is a proper looking hyperlink...really easy! Also includes a statusbar if anyone's interested. (win32 API code, heaps of comments)
Simple program to show how the change the text color of a static/label window. Also how to use the Font common dialog to change the font. Written with only Win32/Platform SDK (ie. no MFC or VCL)
Simple Win32 program to demonstrate the shell 'Select Directory' browse dialog. This is useful when you want the user to select a directory, rather than a specific file. It is not as well documented as the 'Open File' common dialog in the win32 help. It took me a while to find it.
This code shows how to use buttons, editboxes and checkboxes in windows.
This was originally written for rent-a-coder, but since the buyer never accepted any of the bids I decided to post it here. It's really limited but it shows how to use functions and if... else loops. It also shows how to used enum to make a simple menu. You could make a menu without enum, but enum makes it easier to code and to maintain
This code will create an additional button beside the Min, Max and Close buttons! The shape, colours, and image can all be changed to suit your own style.
This example is built from the example I wrote to add color to your controls, it nows lets you change the font also. Code that is new is marked off by comments, this also shows you how to use the ChooseFont common dialog. As always this is pure win32 API, no MFC here.
This example shows how to make windows, list boxes, buttons and edit controls. Not only does it show how to make them but it shows how to use them as well. This example enables XP Themes and keyboard navigation. I'd like feedback, good or bad, so please give some! This sample works on all Win32 computers and only enables themes if they are supported by the current user operating system.
This sample shows how to make a window using pure API. There are already many more but one this site but this one has loads of comments; possibly too many. Well anyway I wrote the sample for my own web site so decided to post it here as well. My screen shot does show a windows 98 and windows xp looking window side by side but don't get confused by that. All this is is a simple window but I was just trying to show how it works on Windows XP as well as older versions of windows.
This code shows and explains how to make controls on a window using pure API, using CreateWindow and CreateWindowEx. This example shows how to make list boxes, edit controls, and buttons. Not only does it tell you how to make them but also how to use the. Unlike other examples I’ve seen this example also shows you how to enable TAB, Shift+Tab and other normal windows navigation things like Alt+ to use a button. This example also shows how to use malloc and pointers the text of a edit control or selected item in a list box. It allows you to add items and remove items to the list box control at run and design time aswell. I hope this code helps you, please give me some feedback! (the zip includes VC++6 and DevC++ project/workspace files)
NO, this is not one of thoze prototypoz menu. It will create a simple menu for you, and have the ff. features: * navigate thru arrow keys * nicely centered on screen menu display * easy access menu items / one-key-press exit * fully customizable and expandable (after learning the source code analysis on the manual) I used purely modular approach, w/c focuses on task analysis, rather than object-oriented analysis that involves classes. THe algo & code are easy to understand even for beginners, becuase it's well commented, and I have provided a manual for your convinience (in TXT and DOC). If you would notice, you will have to modify the default values manually in the jmenu.hpp header file... Why didn't I just create a menu wizard? Well because I want you to know what's happening inside, how it works, so you will learn. Simple. ;) If you like it, pls support for my code and vote for it! Please send me comments, suggestions at jawesfx@hotmail.com So how's my 1st ever documentation that I have created? AND DONT FORGET to read the manual.. Tnx!
This code shows how to easily and quickly create a menu on a non-mfc window using winapi. I this code is versatile, and extremely useful as I for one hate resources. This example deals with making a "file --> exit" menu. The methods used in making this apply to all menus.
It is a Win32 Dialog without a resource script. The Dialog is made by scratch, and it was made so you can see a fullscreen 'black background' dialog on monitor. I Hope you like it.
An example of how to use the WM_NOTIFY message to give tooltips when the mouse hovers over a button in a toolbar. (Also shows toolbar creation).
A shell that allows for an easy start MDI application. Shows how to create and fill the client and mdi structures. Also functions to sort the mdi child windows.
a simple progress bar program for beginners if you find this code useful please vote
The MsgBox class creates, displays, and operates a message box similar to the API "MessageBox" but with some extended features like different button styles, placements and images, timeout ... full documentation included ... v.1.1 now with input box