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 843245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:05:41+00:00 2026-05-15T06:05:41+00:00

Working with Visual Studio 6 (VC++ 6.0) I’m using an ActiveX datepicker control which

  • 0

Working with Visual Studio 6 (VC++ 6.0) I’m using an ActiveX datepicker control which I fail to show expanded by default (3006216). Alternatively I’m trying to send a keyboard message (F4) to my window to open up the control, but nothing happens when I do so…

// try 1: use the standard window handle
LRESULT result = ::SendMessage(m_hWnd,VK_F4, 0, 0);
// try 2: use just use the SendMessage
result = SendMessage(VK_F4);

result is always 0 – what can I do to test/verify the message sending?

Thanks in acvance a lot…

Olli

  • 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-15T06:05:42+00:00Added an answer on May 15, 2026 at 6:05 am

    Okay – there’s two approaches on this issue (thanks for all the help, guys!):

    First: Use “::SendMessage” with correct message AND correct handle:

    ::SendMessage(m_wndDatePicker.m_hWnd, WM_KEYDOWN, VK_F4, 0);
    

    Alternatively use “SendInput”:

    // important: set focus to control first    
    m_wndDatePicker.SetFocus(); 
    
    INPUT *key;
    
    key = new INPUT;
    key->type = INPUT_KEYBOARD;
    key->ki.wVk = VK_F4;
    key->ki.dwFlags = 0;
    key->ki.time = 0;
    key->ki.wScan = 0;
    key->ki.dwExtraInfo = 0;
    
    SendInput(1,key,sizeof(INPUT));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working in Visual Studio 2010 using linq-to-sql's DataContext which has several maps to
I'm working in Visual Studio 2008 using c#. Let's say I have 2 xsd
i am working in Visual Studio 2008 and is bored of default theme of
I am working in Visual studio-2008(VSS). Now i need to get file, which are
I am working in Visual Studio 2008 on an ASP.NET application, which has been
Working with Visual Studio 2010 SP1 (beta?) I'm using Razor cshtml files however I
I'm working in Visual Studio 2010, but using Git from the command line (for
I have been working in Visual Studio 2010, in asp.net, i am using Jquery
I have been working with Visual Studio (WinForm and ASP.NET applications using mostly C#)
Working with Visual Studio (I'm using 2008) I have started to notice that when

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.