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

مشاهدة النسخة كاملة : Moving a dialog box that you do not create [Solved]



C++ Programming
09-09-2010, 02:30 AM
I am using Nuance's SAPI to create a voice recognition training box, which I call with their function:

hRes = m_dgnEngine->DlgShow( dgndlgGeneralTraining, NULL, CComVariant( ), CComVariant( ) )
while I don't think showing that function is important with regards to the question, the problem I am having is the window that pops up is centered on my primary monitor, but I really want it to open on a different monitor.

I cannot simply change the primary monitor in windows and I cannot create their window any other way.

I know I can get the handle of the window, but is there a way in C, C++, or VC++ to move a window that you, technically, have no control of?
modified on Wednesday, September 8, 2010 3:29 PM