桌面开发
现在阅读
The Drag and Drop interface samples
0

The Drag and Drop interface samples

由 ultracpy2018年1月16日

This article is part of the drag and drop interface samples.

  1. Serializing ASCII Data
  2. Modeless child dialog
  3. Modeless sibling dialog
  4. The drag source
  5. The MFC drop target
  6. The TBTextTarget class

  • Download source files – 113 Kb

    Preface

    This is a series of articles that has yielded from experimenting with
    adding some Drag and Drop features to my already-existing application.
    Due to the complexity of the task I split the article in several small
    documents that may easily fit to various of CodeProject‘s
    sections.

    Introduction

    The idea was simple: I have an SDI application
    with a CFormView containing a howerver-you-like filled out CListCtrl in report view.

    The first tricky thing was to use the doc/view architecture with a
    document file format containing ascii-strings. Read about
    that quck’n’clean approach.

    Next I needed to batch-manipulate the data displayed in this control.
    “So why not use a kind of drag & drop interface with a modeless dialog box and
    let the user drag the rows he needs into that dialog…” I thought – and thats how
    this articles start.

    You may download all sample MSVC (6.0) projects at
    once
    or for you can fetch the code for each of these steps:

    I’m looking forward to hearing
    your comments and improvements.

    Best regards
        Thomas Blenkers

  • 出处:https://www.codeproject.com/Articles/821/The-Drag-and-Drop-interface-samples

    关于作者
    ultracpy
    评论

    你必须 登录 提交评论