|
connection of the client to the server.
|
|
|
|
|
|
Hi,
I've a mdi application with different views and one document template. Now I want to load a file automaticly (without clicking on the menue), thats works. But when I do this the new childframe will be displayed. I want to see the childframe from where I open the new file. So that the user can switch to the new childframe when he wants.
Is there any possibilities to open childframes and hide them after the activ one?
Thanks for help
yummi
|
|
|
|
|
Hi,
I've written a wrapper (filter) over the regular display driver for Win2k. I trap all the Drv* calls from the GDI and pass on the ones which i'm not interested in to the regular disp driver. Now i want to pass on some data from an app in the user space to my filter driver. Will it be possible to have this communication thru regular IOCTL stuff, or is there any other way ???
Many thnx in advance.
vikas.
|
|
|
|
|
Hello,
I'm working to define a toolbar. I would like to modify the handle.
I have drawn a picture, put it inside the toolbar as handle but I could manage the picture as a handle.
Does somebody know how to get the picture ID to after allocate it as handle ?
Thanks
titi
|
|
|
|
|
Can you be more specific about picture ID
|
|
|
|
|
I used a CStatic and then loaded a Bitmap into it.
titi
|
|
|
|
|
Hi Everybody,
In my application i have splitted the dialog window into three panes horizontally.By selecting the buttons in the first pane views wii change in second splitter pane.But while changing the views in the second pane the third splitter pane size is decreasing.The number of times the views are changed in the second splitter pane ,the size of the third splitter pane is decreasing that much number of times .So,what should i do to make the size of the third pane constant.
Thanks in advace,
Radhika.
|
|
|
|
|
Hi,
I am new to Visual Studio 2005. I couldn't find the handy Components and Controls Gallery, which was available in Visual Studio 6, through Projects -> Add to Project -> Components and Controls.
Is it gone? If so, how do I accomplish the tasks that I could with the Components and Controls Gallery, like adding an ActiveX control, a popup menu, or a splash screen?
Thank you all for your attention.
Eddie
|
|
|
|
|
I want to know How can i move the Modeless Dialogs , when i move the Parent dialog ?
//Member variables in Parent Dialog:
CMyModelessDlg m_modeLess; // The CDialog bases Modeless
BOOL CMyParentDlg::OnInitDialog()
{
CDialog::OnInitDialog();
//////////////////////////////////////////
m_modeLess.Create(CMyModeless::IDD);
m_modeLess.ShowWindow(SW_SHOW);
}
Can you please tell me how can i move the Modeless Dialog, when i move the Parent Window. ? actualyy I send a Mesage to Modelss Dialog from the Parent Dialog when WM_MOVING , every thing is goin allright , but the Modeless dialog comes on the position of parent dialog s XY postion , i want just want to Move the Modeless with Parent , but only the X,Y ! hope you understand
Thanks in Advance !
|
|
|
|
|
Manni Singh wrote: move the Modeless Dialog, when i move the Parent Window
Are you using the modeless dialog with Child property set to true?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
No.. im not using the Child property , cuz i dont want to Modeless dialog to be child, i want to Trace the X,Y of Parent Dialog and want to move to modeless dialog just as the Parnt dialog moving the X, y
like :
like if :
Parent dialog pos is MoveWindow ( 50 , 50 , 100 , 200 );
and the Modeles Position is Movewindow( 10 , 10 , 100 , 200 );
now if i move Parent dialog to Left , 10 px on WM_NCHITTEST now the value of parent dialog is gona be 20 , 10 , 100 , 200 . and i want tht the Modeless also moves to 10 pcx automaticly , you can say i want to trace the Movement of Parent dialog .
|
|
|
|
|
Handle OnMove in your parent window. You would be having a pointer/ object to the modeless dialog in the parent window. You can call
pChild->MoveWindow(x,y,//width,//height,true); if you have a pointer and likewise for an object.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I use GetWindowText to get the text of a focused object. (lets say a button)
<br />
HWND Btn = ::GetFocus;<br />
<br />
TCHAR ButtonText[1024];<br />
<br />
GetWindowText(Btn, ButtonText, 1024);<br />
This work fine for most windows application.
But when I try this for an application like Firefox I get a NULL-string.
Does anyone have a generic solution to get the text of these non-windows objects..?
|
|
|
|
|
Just out of curiosity, how you have tested this code ? Any action to execute this code could have made application window having this code to activate.
matijsmoest wrote: Does anyone have a generic solution to get the text of these non-windows objects..?
I dont think this is problem related to non-windows object.
Use SPY utility to see, if you can see caption of FirFox window. If you could; then there should not be any problem to get text with above code.
|
|
|
|
|
I use hooking to do this.
If a button is pressed, my code is hooked to the process.
When my code is executed, I make a screenshot and take some extra information from the screen. Like the caption of the activewindow and the caption of the selected button. For all applications I can get the caption of the activewindow, but the caption of the buttons is harder.
The caption doesn't appear in Spy++.
In case of FireFox I get a MozillaWindowClass. But I dont know anything about it..
|
|
|
|
|
It seems that, you are not setting focus correctly on window. Use SPY and select caption bar of Mozila window. You will see the caption of window.
Now setting focus there, use you code.
..You made me install this browser on my m/c.
|
|
|
|
|
Thanx for helping me!
I can (as you figured out) get the caption of a Mozilla window when the focus is good.
My problem is that I can't get the caption of the selected button inside that window. I also can't find this caption in SPY.
I tried it with te options screen:
Tools >> Options
Then tap to the "Use current page" button. I can't find the text "Use current page" in SPY anywhere.
|
|
|
|
|
matijsmoest wrote: tried it with te options screen:
Tools >> Options
Then tap to the "Use current page" button. I can't find the text "Use current page" in SPY anywhere.
Yes, you are right. But I dont know how that window is constructed, because the it looks as a homogeneous panel and SPY cant differentiate betn its child control. No clue about it.
AFAK, its opensource, see if possible, how its achieved ?
-- modified at 7:40 Friday 1st September, 2006
|
|
|
|
|
matijsmoest wrote: : GetWindowText problem
According to MSDN, GetWindowText can't bring text from remote Window control except it title.. you have to use WM_GETTEXT!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
WM_GETTEXT gives me the same result
|
|
|
|
|
The Firefox UI uses their custom-built XUL stuff, not standard windows controls. Sending it window messages probably won't work (unless they reimplemented all the message handling of the corresponding controls, which is doubtful).
|
|
|
|
|
Hi All..
I am working with TabControl, where I created 3 dialog Boxes, in these three one dialog with TabControl, and remaining two dialogs with edit control.
In first Tab-first dialog, Second Tab-second dialog
I had created two dialogs in the OnInitDialog() function .
m_FirstDialog =new CFirstDialog();<br />
HRSRC hResource = FindResource(g_hModule, MAKEINTRESOURCE(IDD_FIRST_DIALOG),RT_DIALOG );<br />
HGLOBAL hTemplate = LoadResource(g_hModule, hResource);<br />
BOOL bResult = m_FirstDialog->CreateIndirect (hTemplate, this);<br />
FreeResource(hTemplate);<br />
m_FirstDialog->ShowWindow (SW_SHOW);
same code fallows for Second Dialog.
Everything is fine but Problem is when I tried to send data from member variable to Control on First , second dialogs.
I am not able to acces the data in editboxes in First, second dialogs from the TabDialog(tabcontrol).
Can you please help me how to find the cause of this problem.
Thanking You.
Sheshidar
|
|
|
|
|
Please suggest available coverage tools that can be integrated with wxDevC++ IDE.
Cheers
Pavan
|
|
|
|
|
Hi all,
I have this piece of code but I didn't write it, and I'm struggling my butt off to understand it ... can anyone help me...
<br />
typdef struct {<br />
uint8_t status;
uint8_t nrclus;
uint16_t tfmtag;
uint16_t recdid;
uint32_t fladdr;
uint8_t *pdbuff;
} TFM_PARAM3;<br />
<br />
typdef struct {<br />
uint8_t status;
uint8_t nrclus;
uint16_t tfmtag;
uint16_t recdid;
uint32_t fladdr;
uint8_t *pdbuff;
void (*app_cb) (TFM_PARAM3 TfmParameters);
} TFM_PARAM2;<br />
<br />
Many thanx...<br />
<br />
Regards
Programm3r
|
|
|
|