Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7756395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:48:42+00:00 2026-06-01T12:48:42+00:00

I have a basic Window class that I need to have events such as

  • 0

I have a basic Window class that I need to have events such as MouseDown, MouseUp, WindowResized etc. I have two possible routes: Signal handlers (e.g. Boost.Signal) or virtual functions where the user of the class creates a class derived from Window and overrides the OnMouseUp, OnMouseDown and OnWindowResized functions. What are the advantages and disadvantages of each or is it a matter of style?

I am writing this in C++ but I guess the concept is more important.

Thanks in advance, ell.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:48:44+00:00Added an answer on June 1, 2026 at 12:48 pm

    This is a study related to the performance of various approaches (plain c, virtual, boost::signal, etc.). Study

    According to this there are some serious problems with the boost.signal. To be frank with you I haven’t used much that library though I thought it is a very interesting question as I was toying with the same idea. As it stands I would go with the virtual implementation.

    Regards. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a basic class that derived subclasses inherit from, it carries the basic
I have a gui with 3 basic areas. A list control that spans the
I have a very basic question about binding between controls. I have a class
I have team members that need to be able to checkin VBA modules/classes created
I just restarted java for university and I have a pretty basic program that
here's what I need (it's a bit hard to explain): I have 2 window
We have a data grid on a window that is bound to a collection
I have a page with links of class 'dialog' that generate in JQueryUI dialog
I have an MVVM application that requires basic backward/forward navigation between screens. Currently, I
I have a basic windows service which does some conversions of data. There's decoupled

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.