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

  • Home
  • SEARCH
  • 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 980565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:24:13+00:00 2026-05-16T04:24:13+00:00

i have created a form using visual c++. all im trying to do is

  • 0

i have created a form using visual c++. all im trying to do is this when a button is clicked the form is gone and new window will be showen. i don’t know if i should repaint the window or there is another solution? please help
Rami

  • 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-05-16T04:24:13+00:00Added an answer on May 16, 2026 at 4:24 am

    What I would do is display your game in the client area of the MainWindow of your app. In (possibly) Init_Instance() also call your form for the login. When the user has filled it in, just close that window and your game will already be behind it. You may need to refresh the screen afterwards so you don’t get any artifacts.

    Also, just noticed the “how to paint the whole thing” question.

    myWindow.Invalidate();
    http://msdn.microsoft.com/en-us/library/2dtwaxz7(VS.71).aspx

    myWindow.InvalidateRect(LPCRECT lpRect, BOOL bErase = TRUE);
    http://msdn.microsoft.com/en-us/library/62w186xw(VS.71).aspx

    Do not put it in the actual paint event, OnPaint().


    I’m just answering the question.

    Trap the button-click event, IOW, create a function for it and close the current window. Then call / create the new window in the same event / function. You’ll most likely need a class level pointer to “hold” the current window.

    No offense, but this would be a fairly bad design, unless you are making a “Wizard” type of construct. That is one window closing actually should bring up the next window.

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

Sidebar

Ask A Question

Stats

  • Questions 514k
  • Answers 514k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You need to implement the ConvertBack function in your ValueConverter… May 16, 2026 at 6:10 pm
  • Editorial Team
    Editorial Team added an answer Python (until version 3) supports "old-style" and new-style classes. New-style… May 16, 2026 at 6:10 pm
  • Editorial Team
    Editorial Team added an answer I assume you want to change the way a checkbox… May 16, 2026 at 6:10 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am experiencing some annoying behavior with Visual Studio .NET 2008. We have created
I have created a custom list in a SharePoint site and generated a Visual
I have an application that was started in C# 1.0 using Visual Studio .NET.
First i have declare that i am new to javascript. I have created a
I have a simple form (textbox, submit button) which is wrapped in an update
Yes, I'm new to c#! :) i'm using .Net4 VS2010. I have Three classes
I have been pulling my hair out about this since Friday and I am
Using Visual C++ 2008. First time, I'm experimenting in crossing over from C# and
I have developed a small C# form application which calls a web service. Everything
I'm making a web application in which certain pages are login-protected. I have created

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.