المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Help about Win32 Message loop



C++ Programming
05-05-2009, 07:20 PM
Hi There,
I am using the following example to make Win32 tab control without using MFC.
Win32 SDK C Tab Control made easy (http://www.codeproject.com/KB/winsdk/Win32SDK_C_TabCtrl.aspx)[^ (http://www.codeproject.com/KB/winsdk/Win32SDK_C_TabCtrl.aspx)]

There are some business reasons that I can only use Win32 API for this.

I am able to create the tab pages. But finding weird behaviour with the messageloop.

I am making an XLL, so my dialog is opened from a selection from Excel menu item.I get a dialog box with tabs on clicking this certain menu item. Each tab has some edit boxes and buttons. which all work fine except the TAB key doesnt work to move from one item to another.

I have implemented it the same way as in above program. The problem i face are:

1. When i click on the tabs, it shows me the correct child dialog. when i change the selection of tab, it goes to the correct next dialog. so everything works fine here. But when i click on any area in the child dialog (i.e to activate the message loop), The tab key starts working on that particular selected tab, BUT after this i am not able to select any other tab. On clickin on any other tab takes me to the first tab (iSel=0)
2. When I close the dialog box from the X button in top right corner; It closes the dialog box BUT it also closes my Excel window which i dont want.


This application I am developing to configure and test some connections. so I need the excel window open after i am done with the configurations.
Please reply if you read this message. I will appreciate any help.
Regards
Ajay
ajaymat@gmail.com