Introduction to Device Drivers

Kernel 101 - writing a simple Windows NT device driver

Introduction to Device Drivers

Scrollbars & Scrolling

Design & Implementation of a Win32 Text Editor

Welcome to the third installment of the "Design and Implementation of a Win32 Text Editor" article series! In this part we will look at adding scrollbars and scrolling to our TextView control.

Scrolling in Win32

In Windows, scrolling is divided into three areas: The first is the physical scrollbars, whether they be scrollbars built into a window, or separate scrollbar controls. There is a complete scrollbar API to set and retrieve the positional information described by a scrollbar - GetScrollPos, SetScrollInfo etc.

Loading a text file

Design & Implementation of a Win32 Text Editor

Introduction

This is the second part of the "Design and Implementation of a Win32 Text Editor" article series. If you haven't already read part 1 then please do so now!

Neatpad Overview

Design & Implementation of a Win32 Text Editor

Introduction

Welcome to the brand new tutorial series - "Design and Implementation of a Win32 Text Editor!" The purpose of these tutorials is to follow the development of a win32 text editor - codenamed Neatpad. Each tutorial will take you step-by-step over the major components and design decisions that lay ahead.

Design & Implementation of a Win32 Text Editor

Neatpad Text Editor

 

Welcome to the brand new tutorial series - "Design and Implementation of a Win32 Text Editor!"

The purpose of these tutorials is to follow the development of a win32 text editor - codenamed Neatpad. Each tutorial will take you step-by-step over the major components and design decisions that lay ahead.

Drop Target

OLE Drag and Drop

Updated 6 Dec 2006

Many thanks to Davide Chiodi from Italy who has very kindly converted the drop-target code into a Pure C implementation - download now!

Welcome to the sixth part of the "OLE Drag and Drop" tutorial series! This article will concentrate on implementing a small application which will act as a drop-target. What this means is that our application will be capable of receiving objects (be they files, pictures or text) which are dragged onto it.

Drop Source

OLE Drag and Drop

Updated 6 Dec 2006

Many thanks to Davide Chiodi from Italy who has very kindly converted the drop-source code into a Pure C implementation

Welcome to the fifth article in the "OLE Drag and Drop" tutorial series! We are almost at the final stages in our OLE drag and drop implementation. The only thing left to do is implement the IDropSource and IDropTarget interfaces. Once we have done this we will be ready to add drag and drop to any application..

Enumerating FORMATETC

OLE Drag and Drop

This tutorial will concentrate on implementing a COM object which exposes the IEnumFORMATETC interface. There are two code downloads this time. The first includes a complete implementation of a generic IEnumFORMATETC which you can use in your applications.

Implementing IDataObject

OLE Drag and Drop

Updated 6 Dec 2006

Many thanks to Davide Chiodi from Italy who has very kindly converted the data-obect code into a Pure C implementation - the download link is available at the bottom of this article!

In the last part of the tutorial we looked at how to access the Windows clipboard using OLE and the IDataObject. In this part we will be implementing the IDataObject interface, and using our completed data object to store the text "Hello World" into the Windows clipboard.

OLE Data Transfers

OLE Drag and Drop

Welcome to the second article in the "OLE Drag and Drop" tutorial series! The purpose of this article is to explore how data is represented and transferred between applications in the OLE environment.

The very heart of OLE data transfers is the IDataObject COM interface. An IDataObject provides a method of transferring and accessing data from one application to another. The most common use of OLE data transfers is the Windows clipboard, and of course drag and drop. The IDataObject is effectively a COM wrapper around one or more items of data.

Pages

Subscribe to Catch22 RSS