Git Product home page Git Product logo

thirtytwo's Introduction

thirtytwo

Build

An experiment wrapping Win32 into an object model, leveraging CsWin32 as the base interop layer. Builds on what I did with WInterop, but focuses on the top level abstractions. Further details to come.

thirtytwo's People

Contributors

jeremykuhne avatar

Stargazers

weizhengwei avatar  avatar  avatar  avatar harborsiem avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar

thirtytwo's Issues

[Question] Few questions

Hello,

First and foremost thank you very much for this, its exactly what I have been missing from Win32InterOps. There are quite a few things I am not entirely certain how to proceed in using this project, so I hope you don't mind id ask for your opinion.

OnLoad event

WinForms have useful event OnLoad, how do I "replicate" this event given that there is no such WM msg?

Actually there are only:
Create = Interop.WM_CREATE,
NonClientCreate = Interop.WM_NCCREATE,

Why is the WM_NCCREATE called non-client? Which precedes which? Is there any other WM event preceding these events which could be used?

Also id like for my OnLoad event to be entirely independent of wherever the Window will ever be visible or shown, it should work anyways.

Event handlers

What kind of event handlers you plain to implement?
Will there be some kind of unified Event Bus?

I am currently building one such. And I quite wonder why class EnterIdleHandler does not actually implements an interface, is that on purpose or just not implemented yet?

Embedding/Absorbing windows

Currently I am using this to create GUI for C# application interfacing a C++ program, and id love to embed the Window of C++ application within my C# application, what is the proper/meaningful/useful procedure to do this?

Currently i am doing some junk like this:

  1. Set the C# app as parent of the C++ app
  2. Set windowLong for styles on child to remove the borders and other junk
  3. Calculate size/position within the C# app
  4. Set childs size/position to fit within parent
  5. Register size/position event handler for parent to update the child to right size/pos after parents move/rezise.

Or are you supposed to use some kind of Containers for this? Like you do with the embedding of ActiveX component?

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.