OnQueryHitPoint - visual-c++

I have ActiveX control developed using VC++. When user clicks on my control, i dont want to handle it and want to pass it to controls below it. (This will be useful if my control is on top of other controls)
To achieve it, i have implemented OnQueryHitPoint() on my control. This works fine when my control is used in VB. But OnQueryHitPoint() is NOT called at all when my control used in VC++.
I appreciate any ideas.
Thanks.

I solved it by myself. I need to override OnNcHitTest() and return HTTRANSPARENT. Hope it will help someone.
Thanks.

Related

create and add QMenu to QToolButton via Designer

i wonder how it is possible to define popup menus in Qt Designer and add them to some toolbutton.
i know how this is done in code but i think it have to be possible in designer too. otherwise i would have gui defining code in my class that is a bit ugly.
please can somebody give me an advise?
(using Designed 4.8.5)

How to perform ActionListener() in eclipse

Actually, I want to perform pure mouse actions(Clicking buttons, selecting check boxes, and select radio button)based upon the GUI label(name), But all the tutorials are given the example to perform with JFrame which we have created.
These examples makes me confusing.
Honestly I'm not professional developer. My professional is testing(QA), but I believe I have sufficient programming knowledge to understand the code. Please give me some sample that i can perform in eclipse IDE.
Note:
The objective of my question is:
How to perform the ActionEvent() in existed iDE?(The frame have File menu, Edit menu and so on.) Is it possible to do with Java?
Please share your ideas with me.
Thanks in advance.
Santhosh.
Create a frame.
Put a button into it.
Call the addActionListener class and add a ActionLister object
into it.
Override the actionPerformed method inside the anonymous inner
class.
As your question talks specifically about eclipse. You should use a plugin called window builder, built by google. It helps you handle action events.
Read the oracle's documentation for learning. http://docs.oracle.com/javase/tutorial/uiswing/components/button.html
I can't write all the code here. But just to get you started here's a link. http://www.javaprogrammingforums.com/java-swing-tutorials/278-how-add-actionlistener-jbutton-swing.html.

How can I add InputScope property to PasswordBox in WinRT?

How can I add Input Scope property to my User Control's PasswordBox?
Could you explain it to me, please?
Thanks.
according to the information i have PasswordBox does not have Input Scope Property in winrt so you can't set it directly. if you want do it you have to make your separate custom control. For defining your own Custom control you have read it on Windows Development Center..or simply google it..hope it helps you..
you can use this link..

setfocus() in form or items of j2me application

I had used the normal form in my project.
In that form i had used the item
1)textfield
2)ChoiceGroup
I want to set focus on choice group when the from appears.How do i get this.
Please help me.
You can try
Display.getDisplay(this).setCurrentItem(choiceGroup);

Winforms c# outlook like Interface

I have already asked the same question but in regards with MDI Application design. Now just for R&D purpose so that we can go with 2 solutions to our user. Can somebody plz help me out...
We are developing an OutLook Style Application using C# Winforms. In that application we are using Microsoft Table Control. Which is what we need to show our UI. In the left hand pane we have menu and in the right hand we are displaying our UserControl. Like CustomerManager. This UserControl is doing Adding, Updating, Deleting ect etc but we want to put the common action buttons, Like Add,Delete,Save on the top toolbar.
So far so good, Now what we need to acheve is regardless of UserControl. What ever UserControl is loaded in the MainForm's TableControl. When the save button is clicked it should process the data on that UserControl. Obviously we will write the logic of the Save Action on each UserControl.
Please help...
Regards
Shanx
I may advice you the Krypton Toolkit. You will write an Outlook style app in seconds.
For all who ended up here like me in search of a free toolkit: As Vulkanino suggested to use Krypton, I loooked it up.
This is now open source Freeware and can be found unter: Krypton Toolkit
Create a Base user control that contains your Add, Delete, Save methods and events. Then create every other functional control that inherits from the Base control.
When you action the main toolbar buttons, you can safely cast each user control in your given container, to the Base user control.
Some MSDN links you might want to read up on:
http://msdn.microsoft.com/en-us/library/44a9ty12(VS.80).aspx
http://msdn.microsoft.com/en-us/library/ms173149(VS.80).aspx

Resources