|
|
Topic Title |
Topic Starter |
Replies |
Views |
Last Action |
|
|
Important Topics |
|
|
Pinned: Discussions about the snippets forum
all discussions about the snippets and the forum management will be posted here. |
blues |
5
|
4452 |
23rd November 2005 - 03:02 AM Last Post by: shoorick |
|
|
Forum Topics |
|
|
Add a button to an edit control
code snippet that adds a button (such as one for file or folder browsing) in an edit control. |
shoorick |
3
|
5291 |
16th October 2012 - 09:45 PM Last Post by: garnerdawson |
|
|
AppendSysMenu - append a menu item to system menu
use the GetSystemMenu to get a handle to the system menu and AppendMenu to append a menu item. |
Jupiter |
0
|
3072 |
27th November 2005 - 08:41 AM Last Post by: Jupiter |
|
|
Compare the last write time of two files
for both files, use CreateFile, GetFileTime and CloseHandle and then use CompareFileTime. |
PhoBos |
0
|
3702 |
25th October 2005 - 03:35 AM Last Post by: PhoBos |
|
|
Display a message box passing the strings directly
a macro allowing you to display a message box by passing strings instead of pointers to strings. |
blues |
2
|
4283 |
2nd January 2009 - 12:01 PM Last Post by: xspider |
|
|
Enable / Disable a dialog item
the EnableDlgItem procedure uses the GetDlgItem and EnableWindow API's to enable / disable a dialog item. |
PhoBos |
0
|
6566 |
25th October 2005 - 03:23 AM Last Post by: PhoBos |
|
|
Get Command Line Parameters
a command line parser that extracts the command line parameters written in pure assembler. |
akyprian |
0
|
7654 |
28th July 2008 - 09:50 PM Last Post by: akyprian |
|
|
Get file size given a pointer to the filename
you can use this macro for inline get filesize in the WIN32_FIND_DATA structure using the FindFirstFile and FindClose API's. |
shoorick |
0
|
4291 |
25th October 2005 - 05:07 AM Last Post by: shoorick |
|
|
Get Kernel32.dll Base
without using GetModuleHandle or LoadLibrary, that is, no import; useful for inline code. |
Jupiter |
9
|
5148 |
27th October 2012 - 11:40 AM Last Post by: seafunk |
|
|
Get the size of a file in a nice formated string
use CreateFile to get a file handle, GetFileSize, StrFormatByteSize and CloseHandle API's. |
PhoBos |
0
|
2795 |
25th October 2005 - 03:31 AM Last Post by: PhoBos |
|
|
Get Windows OS information
code snippet for getting Windows & shell32 version, screen width, height & resolution. |
PhoBos |
0
|
4623 |
25th October 2005 - 04:28 AM Last Post by: PhoBos |
|
|
GetControlRect - Get the rect of a child control
this code snippet allows you get the co-ordinates of a child control within its parent window. |
shantanu_gadgil |
0
|
3950 |
7th February 2006 - 10:50 AM Last Post by: shantanu_gadgil |
|
|
MessageBox with a custom icon
a code snippet that allows you to display a message box with any icon of your choice. |
Jupiter |
8
|
7804 |
6th April 2010 - 03:49 AM Last Post by: zomfori |
|
|
Minimizing open windows
here is my source code how to minimize all open applications with COM |
Vortex |
1
|
1957 |
1st January 2011 - 08:53 AM Last Post by: Gunner |
|
|
PathStripPath - Shlwapi
I have always used PathStripPath from Shlwapi to extract the filename, here is my snippet solution |
ragdog |
5
|
4449 |
30th March 2011 - 02:39 PM Last Post by: Gunner |
|
|
Set the keyboard focus to a dialog item
the SetDlgItemFocus procedure uses the GetDlgItem and SetFocus API's to set the focus to a dialog item. |
PhoBos |
0
|
4379 |
25th October 2005 - 03:21 AM Last Post by: PhoBos |
|
|
Set tooltip for any window / control
this code snippet allows you to add a toolitp for any window / control such as a button, an edit control etc. |
Jupiter |
0
|
3462 |
25th January 2006 - 05:48 PM Last Post by: Jupiter |
|
|
Single Instance
restrict the program running instances to one & if already running set the program to foreground. |
blues |
1
|
2641 |
18th January 2010 - 06:41 PM Last Post by: owner_bsp |
|
|
Suppress all keyboard messages
the following snippet lets you retrieve and remove all keyboard messages from the message queue. |
akyprian |
0
|
3594 |
8th April 2008 - 10:55 PM Last Post by: akyprian |
|
|
Template for a WinXP manifest file
include a WinXP manifest file in your project so that your binary has the WinXP look and feel. |
blues |
2
|
4183 |
3rd April 2010 - 02:10 AM Last Post by: ragdog |
|
|
Template of a DLL definition (.def) file
code snippet for exporting procedures from a dynamic link library with the help of a dll definition (.def) file. |
blues |
0
|
5795 |
24th October 2005 - 07:45 AM Last Post by: blues |
|
|
Tracing register contents
have you gone crazy trying to trace register contents? It happens when writing assembly programs. |
te987 |
0
|
4630 |
7th September 2006 - 10:49 AM Last Post by: te987 |