|
Im using Formview and Ima minimizing the window when i click the f4 button ,Its also mininizing and i need to now maximize my window when i click from the taskbar?.
Can you pls help me.....
|
|
|
|
|
Hi all. I have a question about socket. Hope everybody helping me ^^
In socket, I have a simple Server Chat and Client Chat. When a socket in server side accept an connect from Client. And Client side connect to server. Then the socket of both server and client action the Send() command. Is it right ? If it is right, how can I ignore the message I received at that time ?
Thanks
|
|
|
|
|
What are you talking about?
Ignore WHAT message? And what do you mean by "message"?
|
|
|
|
|
I'm using above mentioned ctrl in my dialog, it is as simple as possible, I populate only one column. My problem is that when I click header to trigger sorting action nothing happens (sort arrow is drawn correctly)?
In property's panel Sort is set to none!
Any help!
Thanks in advance!
|
|
|
|
|
josip cagalj wrote: My problem is that when I click header to trigger sorting action nothing happens
josip cagalj wrote: In property's panel Sort is set to none!
It seems a coherent behaviour.
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]
|
|
|
|
|
"In property's panel Sort is set to none!"
It seams it doesn't matter how I set it (None/Ascending/Descending)it's only for starter, my main concern is that sort do not work when I click my mouse over the header control!?
|
|
|
|
|
From the List View docs:
Unless the LVS_NOCOLUMNHEADER window style is specified, column headers appear in report view. The user can click a column header, causing an LVN_COLUMNCLICK notification message to be sent to the parent window. Typically, the parent window sorts the list-view control by the specified column when this clicking occurs. The user can also drag the column guides between the headers to size the columns.
So, are you handling the LVN_COLUMNCLICK notification? If not, nothing very much will happen.
(If it's any consolation, I expected to find some sort of LVN_ISONETHINGBIGGERTHANANOTHER notification, but there you go...)
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
can you tell me how to sort mutilple col to mail:dfza@sina.com thanks!!!
|
|
|
|
|
1/ No, because if I do email you amazingly great advice, noone else would see it and benefit.
2/ If I reply to you here with also amazing advice, noone would see it.
3/ I'm kinda busy today. Others may be able to help you better.
4/ I've never actually sorted a list control. When I have used the things, I want to control the order of presentation. My previous answer was an example of "here's the documentation. It prehaps has useful information..."
The advice I *will* give you is to post a new question on this forum, after reading the "how to post" post at the top of the forum. Then you will get an email notification of any replies, and others can benefit too. You do want others to benefit, don't you?
The only thought I can think of is that you need to know how to sort on one column first before trying multiple columns.
Iain.
|
|
|
|
|
I tried to construct a Bitmap object using a gif file.
And use Graphics::DrawImage to draw it in the size other then the original one.
It displays a black box.
Doesn't GDI+ support this?
If not, does CImage support this?
The 3rd party support will be the last resort.
Thanks.
system
modified on Monday, July 7, 2008 5:03 AM
|
|
|
|
|
Have you tried drawing it normally (without scaling) to make sure you have it loaded and are trying to draw it correctly?
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
It's ok without scaling.
system
|
|
|
|
|
Then I have no idea... Graphics::DrawImage(...) is supposed to support scaling all by itself, so if you constructed the Graphics object using the Image object that contains the loaded GIF, it should work...
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
CPropWnd is derived from CDockablePane , and CNavWnd is derived from CWnd .
Here is the handler for the "show navigator button":
void CPropWnd::OnShowNavigatorWnd()
{
CNavWnd *pNav = new CNavWnd(this);
CRect rc;
rc.SetEmptyRect();
if (!pNav->Create(NULL, NULL, WS_VISIBLE | WS_OVERLAPPEDWINDOW, rc, this, UINT(-1)))
{
ASSERT(FALSE);
}
GetWindowRect(&rc);
pNav->SetWindowPos(NULL, rc.right + 5, rc.top, -1, -1,
SWP_NOSIZE | SWP_NOZORDER | SWP_SHOWWINDOW);
pNav->UpdateWindow();
}
Why the navigaotr windows can't be shown?
system
|
|
|
|
|
Hi, already tried to give a positive ID to the control?
Propably it helps
Greets
|
|
|
|
|
|
look where your window is:
pNav->GetWindowRect(&rc);
I advise you create the windows with useful values. Call GetWindowRect(&rc); before Create().
Greetings from Germany
|
|
|
|
|
hi...
am using windows mobile 6.0.
here in my application to show tha current date i used the following code
CString pDate, pDate2;
SYSTEMTIME ct;
CMonthCalCtrl m_MonthCal_1;
m_MonthCal_1.GetCurSel(&ct);
//int day = ct.GetDay();
m_MonthCal_1.GetToday(&ct);
pDate.Format(_T("%d/%d/%d"),ct.wDay,ct.wMonth,ct.wYear);
AfxMessageBox(pDate); // just for testing
but it not shows the current date.
what is the mistake in my code...
can u pls anyone tell the reason?
thank you...
paulraj
|
|
|
|
|
gnanapaul wrote: CMonthCalCtrl m_MonthCal_1;
Why are you creating a new instance of the control ?
How did you create the control in fact ? Did you use the resource editor ? If yes, then you first need to associate a variable to this control and use that variable to interact with the control.
|
|
|
|
|
Possibly you've first to initialize the control with current time, via SetToday method, for instance:
COleDateTime now = COleDateTime::GetCurrentTime();
m_MonthCal_1.SetToday(now);
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]
|
|
|
|
|
thanks for ur guidance...
its working smartly. it shows the current date.
how to show the user selected date?
paulraj
modified on Monday, July 7, 2008 3:58 AM
|
|
|
|
|
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]
|
|
|
|
|
gnanapaul wrote: how to show the user selected date?
GetCurSel method should do the job.
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]
|
|
|
|
|
thank you once again for your kind guidence
paulraj
|
|
|
|
|
Hi
I'm having the following error message when compiling a project with VS2005
e:\projects\netsim\netsim\grafo.cpp(66) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::_Vector_const_iterator<_Ty,_Alloc>' (or there is no acceptable conversion)
with
[
_Ty=Ligacao *,
_Alloc=std::allocator<Ligacao *>
]
c:\program files (x86)\microsoft visual studio 8\vc\include\vector(392): could be 'std::_Vector_iterator<_Ty,_Alloc> &std::_Vector_iterator<_Ty,_Alloc>::operator =(const std::_Vector_iterator<_Ty,_Alloc> &)'
with
[
_Ty=Ligacao *,
_Alloc=std::allocator<Ligacao *>
]
while trying to match the argument list '(std::_Vector_iterator<_Ty,_Alloc>, std::_Vector_const_iterator<_Ty,_Alloc> )'
with
[
_Ty=Ligacao *,
_Alloc=std::allocator<Ligacao *>
]
The code is:
std::vector<Ligacao *>::iterator it;
for (it=this->_m_graf_map[_onde].begin() ; it != this->_m_graf_map[_onde].end() ; it++)
{
if (
((*it)->esquerda()->id() == _esq && (*it)->direita()->id() == _dir) ||
((*it)->esquerda()->id() == _dir && (*it)->direita()->id() == _esq)
) return true;
}
Where _m_graf_map is defined as:
std::vector<std::vector<Ligacao *> > _m_graf_map;
Does anybody know what am I doing wrong?
Fratelli
|
|
|
|