|
I wonder how I can find paint region of every window. You know that there a lot of windows with custom form (elipse, triangle, etc.).
Best regards,
Alex
|
|
|
|
|
Try Cwnd::GetWindowRgn(), the parameter is a HRGN
|
|
|
|
|
Hi, i need source code about TimeStamp Protocol ( i think RFC 3161 )
can anyone help me ? Any link with source code ?
thanks
luis
|
|
|
|
|
Luis Ricardo wrote:
Any link with source code ?
No, but have you tried Googling for it?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
|
You might consider e-mailing the authors of the RFC. They might have some code, or know of a link that does.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Try sourceforge.net:
http://sourceforge.net/projects/sipstack/
or
http://sourceforge.net/projects/timestamping/
Huey
|
|
|
|
|
In order for Luis to benefit from this, your reply should be directed to him.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Re-send:
Try sourceforge.net:
http://sourceforge.net/projects/sipstack/
or
http://sourceforge.net/projects/timestamping/
Huey
|
|
|
|
|
|
I want to convert a integer value to a CString.
I have been using 'itoa' or 'sprintf' to convert integer value to char string then convert the char string to CString.
Is there a better way to do it?
|
|
|
|
|
Check out the Format function (CString member)
|
|
|
|
|
As mentioned above:
int i=5
CString szI = "";
szI.Format("%d", i);
~Nitron.
ññòòïðïðB A start
|
|
|
|
|
Thanks all.
CString::Format is just what I need.
|
|
|
|
|
I want to create a new codec for windows media player for my own avi file. I have my own fourCC value and I would like WMP to recognize it and run the proper decoder for my file...
Any ideas???
Thanks,
JS
|
|
|
|
|
write a normal directshow filter.
Don't try it, just do it!
|
|
|
|
|
I have a Direct Show filter that I made which enables me to view my video using GraphEdit...
In GraphEdit, I can make a filter graph and render the avi... But, how can I make it so Windows Media Player will render my file, without any questions asked?
|
|
|
|
|
I am not expert in this area but this URL might help
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay/mmp_sdk/playerobject.asp
|
|
|
|
|
I finally got it to work!
I just had to change the merit value of my filter from MERIT_DO_NOT_USE to MERIT_NORMAL so the intelligent connect tries my filter when trying to load the file.
Thanks to everybody that tried to help me!
JS
|
|
|
|
|
Hi. I'm translating some menu options and I'm running into a problem with it.
I have this menu item, which is a popup menu, inside the Edit menu.
For setting menu item text, I have made the following function:
ASSERT( pMenu != NULL);
ASSERT( ::IsMenu( pMenu->GetSafeHmenu()) != FALSE);
UINT nFlags = pMenu->GetMenuState( nPos, MF_BYPOSITION);
UINT_PTR nNewID = 0;
if( nFlags & MF_POPUP)
{
CMenu *pSubMenu = pMenu->GetSubMenu( nPos);
ASSERT_VALID( pSubMenu);
nNewID = (UINT_PTR)pSubMenu->GetSafeHmenu();
}
else
{
nNewID = pMenu->GetMenuItemID( nPos);
}
return (pMenu->ModifyMenu( nPos, nFlags | MF_BYPOSITION, nNewID, inText) != 0);
This function works fine, I've been using the same function to translate some other menu items (I've added an item next to file, edit, etc.).
But for some reason these other menu options end up being empty. But when I try to retrieve the text, with GetMenuString, it shows what I entered in the resource... now, what the heck am I doing wrong here??
|
|
|
|
|
Not 100% sure what you mean in your question, but do you need to use the MF_STRING flag in the ModifyMenu call?
Roger Allen - Sonork 100.10016
Strong Sad: I am sad I am flying
Who is your favorite Strong?
|
|
|
|
|
I've tried that too, result is the same.
It's a bit of a strange case. I'm basically translating every menu option, and for the top level menus (file, edit, view, etc.) I'm using the function I posted in my original message.
The menu items that are there by standard (file, edit, etc.) are done fine, I can change the translation and it would show up differently. However, I've added one extra item called Production, when using the same function as all the others, I end up having an empty menu option.
Let me try to get a screenshot online:
Picture
Between Tools and Window there's an item missing: Production
And at the bottom of the picture, I'm obviously missing text...
But like I said, if I change the translation for like tools or something, which uses the same function, it does work..
|
|
|
|
|
One possible reason is that as your setting the test of a popup menu item, such items always have an ID of -1 or 0 (I forget which). This means that you may be corrupting the item by setting a new WM_COMMAND ID for the popup menu item to something other than -1/0.
Also, are you calling DrawMenuBar() after all your changes to the menu as you should do if you change the visual aspect of a menu item.
Roger Allen - Sonork 100.10016
Strong Sad: I am sad I am flying
Who is your favorite Strong?
|
|
|
|
|
According to MSDN I'm supposed to pass on a menu handle (HMENU) of the popup for any menu items which have the MF_POPUP flag set. I'm not entirely sure what you mean with the new command ID otherwise?
I'm not calling DrawMenuBar(), no. I tried that before, but that didn't seem to make any difference. Everything else works without calling it, so it didn't seem necessary. MSDN says I should, but like I said, there's no difference.
|
|
|
|
|
I'm pretty new at C++ so please bear with me. I currently have two spin controls, both aligned horizontally, and they are fully functional within the context of my app. The problem is they could be more intuitive, see currently it's laid out something like this:
X Position:
<< >>
Y Position:
<< >>
but what I'd rather see is something more like:
^
^
<< >>
v
v
so that X/Y motion is being controlled by arrows pointing up/down/left/right rather than left/right controlling both X and Y motion.
How can I go about creating a 4-direction spin control?
thanks
-Paul
|
|
|
|