|
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.
|
|
|
|
|
Well, use two custom buttons and an edit control in the middle. Of course your code will group them as if there is just one single 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]
|
|
|
|
|
See if this article points you in the right direction.
"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
|
|
|
|
|
Maybe detect Mouse position with WM_MOUSEMOVE, set a bool Button1 = false if it's on the second part and true when on the first part.
And on WM_COMMAND use the if (Button1) do action1, else or if (Button1) do action2.
|
|
|
|
|
I need a quick example on how to use tr1::regex class from VS2008.
I have a string like
"something" "something" ...
and I want to get only what's between the first quotes.
In VC6 find/replace it would look
Find: "\([^"]\)"
Replace: \1
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Try Namespace: System::Text::RegularExpressions
#using <System.dll>
using namespace System;
using namespace System::Text::RegularExpressions;
int main()
{
Regex^ rx = gcnew Regex( "\\b(?<word>\\w+)\\s+(\\k<word>)\\b",static_cast<RegexOptions>(RegexOptions::Compiled | RegexOptions::IgnoreCase) );
String^ text = ""something" "something"";
MatchCollection^ matches = rx->Matches( text );
Console::WriteLine( "{0} matches found.", matches->Count );
for each (Match^ match in matches)
{
String^ word = match->Groups["word"]->Value;
int index = match->Index;
Console::WriteLine("{0} repeated at position {1}", word, index);
}
}
http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regex.aspx[^]
|
|
|
|
|
I don't thing he's referring to managed code. See TR1[^] here.
Steve
|
|
|
|
|
TR1's regex is based on Boost[^]'s Regex[^] library. See the sample presented here[^], for example. You may have to alter the namespace and #include , but that should be about all.
Steve
|
|
|
|
|
Hi,
I have an MFC application written manually (no wizard) as below. I am able to add a menu to it. But I also need a form view (where i can add buttons and other controls) . I created the required form in the resource editor (Resources->Dialog->IDD_FORMVIEW).
But how can I attach this IDD_FORMVIEW to my CDemoFrame?
Thanks
JC
class CDemoFrame : public CFrameWnd
{
CDemoFrame();
}
CDemoFrame::CDemoFrame()
{
...
Create(NULL, _T("My Demo Application"),
WS_OVERLAPPEDWINDOW,
CRect(Left,Top,Right,Bottom),
NULL,
MAKEINTRESOURCE(IDR_DEMO_MENU));//Adding menu for demo application
...
}
BOOL CMyDemoApp::InitInstance()
{
...
m_pMainWnd = new CDemoFrame;
...
m_pMainWnd->ShowWindow(SW_NORMAL);
...
}
|
|
|
|
|
I have read your book that is named Programming Windows, 5th edition,and the author is charles petzold.However,when I reading your book that Programming Windows, 5th edition,I feel very confused with it,because I can't understand about the content,especially after the 100 pages.How can I read it effective and improve my ability of programming.I wan to everyone can give me some advices.
Note: If you wish to unsubscribe from the newsletter then uncheck the "Weekly Newsletter" option above.
More about You (optional)
This allows you provide a biography which is attached to any articles you post, as well as your homepage, interests and even your birthday!
|
|
|
|