|
Broadcast is only sent to top level windows and not child windows.
|
|
|
|
|
Hi ,
I am trying to get running application process ID So I am iterating every exe name and comapring using EnumProcessModules.
It is wroking fine on XP but on vista I am not getting name for all running process.For some process I am able to see the process name but not for all.
What might be the issue?
|
|
|
|
|
It could be a permission issue.
Try running application with administrator privileges. Right click -> Run as administrator.
|
|
|
|
|
I have a simple MFC app, where I use SetWindowPos(Left, right, Width, height) in my InitInstance(). What do I need to do to launch this app from the command line and specify the four parameters with the command line as well? I know it does have to do with
CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); , but not sure how to go about it.
Thanks
|
|
|
|
|
|
Thanks, will take a look.
|
|
|
|
|
Software2007 wrote: What do I need to do to launch this app from the command line and specify the four parameters with the command line as well?
If you are running your app from a command prompt, use:
myapp.exe <left> <right> <width> <height>
If you are running your app from within Windows, change the properties of the icon to include the <left> <right> <width> <height> values.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
I am drawing on a dialog. Many rectangles are drawn. When I minimize the dialog the previous rectangles erase. How can I retain all rectangles?
|
|
|
|
|
How you draw the rectangles?
Where you draw the rectangles?
For example, have you implemented OnPaint method of the dialog to handle the drawing ?
Watched code never compiles.
|
|
|
|
|
the fitst replyer is very good.
|
|
|
|
|
I am drawing on a dialog and I am doing that in a thread.
|
|
|
|
|
You should draw ALL the rectangles you need inside a single paint call.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi All
Suppose I have a dial up communication from my computer through its modem.
Now I want to listen and get log of data on this telephone line using another computer and modem. How could I do this?
The second computer's modem does not wake up to get data from line, because it needs to dial up itself or waiting for a comming call, but I want it to listen silently to the line.
please help.
|
|
|
|
|
Are the two computers located near each other?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Thanks a'lot for your attention.
Yes, two computers are located near each other.
I am waiting for your help.
Thanks again.
|
|
|
|
|
Then hook the computers up something like:
--------- ------------ ------------
| phone |----| computer |----| computer |
| jack | | a | | b |
--------- ------------ ------------
where Computer B is the one you want to monitor. The data will pass through the modem in Computer A. Admittedly, I've not ever tried this so I may be way off base.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
I create a link using 2 modem between 2 computer like that you displayed. But problem is that modem of 'b' (that monitor the line) does not wake up to get data from line, because it needs to dial up itself or waiting for a comming call, but I want it to listen silently to the line.
Thanks.
|
|
|
|
|
I have placed a combobox on the MSFlexGrid cell. when I click on the cell, Combobox is appearing on the cell. But the Combobox dropdown is not showing up when I click on the combobox.
Please help me.
Also anybody please tell me how to increase the height of the Combobox dropdown at runtime through code.
|
|
|
|
|
MSFlexGrid, brrr...anyways, how did you make the combobox appear on the cell? Who is the parent of the combo box? For the height i think you can use SetWindowPos on the combo box to set the height and it will use it for the dropdown part.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Pay attention to how you set the size of your combobox. Combo consists of two controls: edit and listbox. When you set the size of combo box, you set the size size of edit (width) plus the size of listbox that drops down (lb_height = cb_height - edit_height). The height of edit box is being set automatically and you cannot set it directly via setting the combo's height.
|
|
|
|
|
Hi,
Can I use single button for more than one behaviour. For example one button is devide into 2 parts, If I click on first part minus operation should be performed and click on second part + opeartion should be performed.
|
|
|
|
|
Why don't you use two buttons?
(i.e. you may use two owner drawn buttons, looking as a single one).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi
I have to create combination box in whixh one side there will be + and other side there will be - and in the middle there will be some value. Once we click on plus the value will increase and by clicking on - the value should decrease.
|
|
|
|
|
Don't you like the 'standard' Spin Button Control [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
No, its custom control. So we need to do like that only.
|
|
|
|