|
Can sm one tell me which on is better from the programmer's point of view, using SIP or H.323 or the combination of these, considerig feasibility aspect in wireless communication?
sumit
|
|
|
|
|
Choose a forum, and ask there. Don't spam the site
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Do you have a brain? Incase not, it is the thing inside your head that is supposed to assist you in determining what is pathetic and what is not. But since you are determined to have no name, I would point to the latter, IF you know know what that means.
Please stop spamming the site and give your account a real name!
|
|
|
|
|
|
Hello,
I am working with MFC and I have a derived class CWnd that contain mutiple CCombox. I do not understand wath happend wenn I hide the CWnd I have looked into OnShowWindow from the combobox and it come never there but wenn I hide the CWnd the combobox are also hided.
I use the scroll fonctionality to move all Combobox wenn the is more as the CWnd height. Wenn the scroll position as changeg I Redraw all Combobox with MoveWindow(new position) and I Invalidate the rectangle from the CWnd. All combobox are redraw but the CWnd do not refresh or clean totaly the screen and some combobox are present in the screen but not any more existing.
Combobox create like:
this is the CWnd
Create(WS_CHILD|WS_VISIBLE|WS_VSCROLL|CBS_DROPDOWNLIST,CRect(0,0,200,30), this, i*100);
What happend with child window and what I try to fix my problem.
Thank you
AutreChien
|
|
|
|
|
And your problem is ComboBox or CWnd you change location of Comboboxs wih MoveWindow and it seems that its correct,whats problem now
|
|
|
|
|
Hello,
I have found the problem but I do not understand. I have just hadded yesturday with the wizard from VS2005 a afx message from ON_WM_PAINT() to see if the OnPaint() was called.
Now I have remove this fonction and it's work!!!
I do not understand what I am doing wrong because I do not change anythink into this fonction:
void CWndStepEditor::OnPaint()
{
CPaintDC dc(this); // device context for painting
TRACE("CPaintDC dc(this); // device context for painting\n");
// TODO: Add your message handler code here
// Do not call CWnd::OnPaint() for painting messages
}
?? What happend when I add this fonction in a class !
AutreChien
|
|
|
|
|
Hi
I am starting apache.exe with CreateProcess API.Parent and Child process are getting created in task manager . When I am trying kill apache with TerminateProcess(Process handler) only one apache process is getting killed.
Could any one explain this ? Is there any solution to kill the second one too.
Thanks and Regards,
Venkata
-- modified at 5:25 Thursday 1st February, 2007
|
|
|
|
|
If you request a process to shutdown, never mind the way to do it at this point, that process is the only one that is going to be ended. If you'd like other processes as well to be shutdown, you'd have to request them to end respectively.
Once a process is created it lives its own life independant on what process created it, i.e. if the "parent" process is killed the "child" process continues to run unless the "parent" process is designed to explicitly kill its "child" processes.
You should not use ::TerminateProcess() .
You can read about the reasons here[^].
What you should do is post a WM_CLOSE message to the main thread, or window, of the process you want to kill. You can simply save the thread handle that you were given when you created the process in the PROCESS_INFORMATION argument. More info here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
|
|
|
|
|
Used of FindWindow to retrives handle to window and then send WM_CLOSE to it
|
|
|
|
|
Hi,
Thanks for the Reply.
My application wont create any windows .. it is a service which will invoke list of exes with create process . It has to terminate all the process when we stop service.
Problem comes only with Apache ..its not killing the parent process.
Do you know any API which takes ProcessID as input and kills the process ?
|
|
|
|
|
If you have ProcessID you can use of OpenProcess for get a handle to process and use of TerminateProcess
|
|
|
|
|
Can u pls tell me what happens if we ignore the token name in the macro
ex:
#define dfg
Thanks in advance.
|
|
|
|
|
Here, what the Token name means???
Come online at:-
jubinc@skype
|
|
|
|
|
It means that you've created a definition without a value. This would be used, for example, as a check if a piece of code has been compiled before, the common example is inclusion guards like
#ifndef blah
#define blah
class blah
{
}
#endif
This will compile blah the first time, and the #ifndef will fail every other time, as blah has been #defined
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hello Everybody,
I have face one problem to display list control in vc++ / mfc.
How to set different width for each sub item of list control in mfc / vc++
I want to show list control's sub items in following manner
______________________
|Heading1 |
|_____________________|
|Subject |
|_____________________|
|SubItem1 | SubItem2 |
|__________|__________|
If my problem is not possible then please give me another suggestion to display list sub item in list control.
"How to merge list control columns in MFC ?"
I think another solution of this problem by putting another list control inside sub item of upper level list control. Then one problem is face of handling event of inner list control. Because, I am want to handle user click event of Sub Item.
If it is possible then give me quick help.
Thank you
Punita Pandya
|
|
|
|
|
pandyapunita wrote: "How to merge list control columns in MFC ?"
even thought not physicaly, you can chnage the drawing in list control to appear as if they are merged. you need to handle NM_CUSTOMDRAW message for this. Check the articles in code project based on list control custom draw.
nave
|
|
|
|
|
Thank You For given reply
punita
|
|
|
|
|
Naveen R wrote: NM_CUSTOMDRAW
I try to handle "NM_CUSTOMDRAW" event for merging column. But it is not proper work to merge column.
From that I change the font color but not abstract the column.
Can any one help?
“How to merge column using Custom control event?”
For that should I implement CDRF_SKIPDEFAULT event for drawing sub item my self?
Then how to do self drawing control?
Pandya Punita
|
|
|
|
|
pandyapunita wrote: should I implement CDRF_SKIPDEFAULT
Off course i mean it. U must draw each column by your self when draw stage is CDDS_ITEMPREPAINT. And must return CDRF_SKIPDEFAULT.
nave
|
|
|
|
|
I am not as familiar with mfc.
Can you help me about draw each column by programmer.
Or you can give me any related project in which CDRF_SKIPDEFAULT return value is handle.
punita
|
|
|
|
|
try the code below
void ListCtrlEx::OnCustomDraw( NMHDR* pNMHDR_i, LRESULT* pResult_i )<br />
{<br />
NMLVCUSTOMDRAW* pLVCD = reinterpret_cast<NMLVCUSTOMDRAW*>( pNMHDR_i );<br />
NMCUSTOMDRAW &nmcd = pLVCD->nmcd;<br />
*pResult_i = CDRF_DODEFAULT;<br />
switch (nmcd.dwDrawStage)<br />
{<br />
case CDDS_PREPAINT:<br />
*pResult_i = CDRF_NOTIFYITEMDRAW;<br />
break;<br />
<br />
case CDDS_ITEMPREPAINT:<br />
{<br />
if( nmcd.dwItemSpec == 3 )<br />
{<br />
LVCOLUMN stColumn = {0};<br />
stColumn.mask = LVCF_WIDTH | LVCF_FMT;<br />
for ( int nCol=0; GetColumn( nCol, &stColumn ); ++nCol )<br />
{<br />
CRect ColumnRect;<br />
GetSubItemRect( nmcd.dwItemSpec , nCol, LVIR_LABEL, ColumnRect );<br />
CRect ColumnRect2;<br />
CString csText = "some text";<br />
if( nCol == 2 )<br />
{<br />
GetSubItemRect( nmcd.dwItemSpec , ++nCol, LVIR_LABEL, ColumnRect2 );<br />
ColumnRect.right = ColumnRect2.right;<br />
csText = "merged text";<br />
}<br />
CDC *pdc = CDC::FromHandle( nmcd.hdc ); <br />
pdc->DrawText( csText, ColumnRect, DT_SINGLELINE|DT_LEFT|DT_VCENTER );<br />
}<br />
*pResult_i = CDRF_SKIPDEFAULT;<br />
return;<br />
} <br />
*pResult_i = CDRF_DODEFAULT;<br />
break;<br />
}<br />
default:<br />
*pResult_i = CDRF_DODEFAULT;<br />
break;<br />
}<br />
}
nave
|
|
|
|
|
Naveen R wrote: GetSubItemRect( nmcd.dwItemSpec , nCol, LVIR_LABEL, ColumnRect );
How can I find proper subitem rectangle to draw text??
Punita
|
|
|
|
|
whats wrong with the GetSubItemRect?
nave
|
|
|
|
|
Sorry,
Now It is work fine.
Thank you very much Naveen to give me reply.
Punita
|
|
|
|