|
CTime::GetTime might give you what you want.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
No,It can't.You don't understand me.
Now ,I understand.
Ask you a question.
What's the meaning of 'splode'?
|
|
|
|
|
How about clarifying your original post, and elaborating on the solution you came up with instead of leaving us all in the dark? Maybe it'll help someone in the future.
If CP forums contained nothing but posts similar to yours, it would become absolutely useless. Share the knowledge!
|
|
|
|
|
I'm wondering if the less value 'n' get, the less time tooltip appears needed?
CTooltipCtrl::SetDelayTime(n);
...always look on the <blink>bright
side of life...
(Whistle)
|
|
|
|
|
Per MSDN:
Call this function to set the delay time for a tool tip control. The delay time is the length of time the cursor must remain on a tool before the tool tip window appears. The default delay time is 500 milliseconds.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I want to seperate a video file (mpeg2) into three different files. The content of the first file should be I-Frames, P-Frames in the second file and B-Frames in the third frame. In the next step the three files should be manipulated and merged into one file again. The idea is to simulate a air-interface.
My problem is still to seperate a file into three single files.
I hope someone has an idea.
If there is a C-Code available it would help a lot.
Armin Schlögl
|
|
|
|
|
hey...
My application draws a plots data given at run-time ...but having problem in properly scaling time(in seconds) along x-axis
|
|
|
|
|
You have to provide more details[^] in order to expect any valuable answer...
|
|
|
|
|
Hello.
I need to set an [ExgangeServer] and a [User] to MAPI Profile.
I do it like this:
MAPIAdminProfiles(0L, &pProfAdmin);<br />
pProfAdmin -> AdminServices(m_ProfileName, "", 0L, 0L, &lpSvcAdmin );<br />
pSvcAdmin->CreateMsgService("MSEMS", "Microsoft Exchange", 0L, 0L);<br />
pSvcAdmin->GetMsgServiceTable(0L, &pMsgSvcTable);<br />
...<br />
HrQueryAllRows(pMsgSvcTable, (LPSPropTagArray)&sptCols, &sres, NULL, 0, &pRows);<br />
....<br />
<br />
SPropValue rgval[2];<br />
rgval[0].ulPropTag = PR_PROFILE_UNRESOLVED_NAME;<br />
rgval[0].Value.lpszA = m_User;<br />
rgval[1].ulPropTag = PR_PROFILE_UNRESOLVED_SERVER;<br />
rgval[1].Value.lpszA = m_ExchangeServer; <br />
<br />
hr = pSvcAdmin->ConfigureMsgService(<br />
(LPMAPIUID)pRows->aRow->lpProps[iSvcUID].Value.bin.lpb, 0, 0, 2, rgval);
As it has been described in the article: http://support.microsoft.com/kb/q170225
The ulFlags parameter I set to the value 0 (!) to prevent any popup dialogs.
But anyway every time when I try to set different Exchange Server from another active directory, the
Authentication popup dialog appears. And User needs to type here the <domain>\<username> and <password>.
The question is:
How to prevent such a dialog to appear?
How is it possible to pass all the data (like this [domain]\[username] and [password]) by code in order to prevent the dialog to pop-up?
|
|
|
|
|
Hi all,
Iam changing the backGround colour of a bitmap. When I go to the "ResourceView" of my visual studio editor,Click on the bitmap,The bitmap is displayed. I wanted to add a new custom colour as the "colors" toolbar doesn't contain any colour,of interest to me.
so I go to the "Image" menu & call "AdjustColours" to add my new custom colour.Using this colour I change the background of my bitmap & the colour is changed.
Now When I run my application the customcolour which I added is not displayed in the bitmap as background.
Iam using this bitmap as an image in my CTreeCtrl,which is created at runtime.
I have my CTreeclass: public CTreeCtrl
In the OnInitDialog,I do as follows:
m_ImageList.Create(IDB_MRO_IMAGELIST, 16, 1, RGB(255, 255, 255)))
m_wndTree.SetImageList(&m_ImageList, TVSIL_NORMAL);
//m_wndTree is my class derived from CtreeCtrl
Thanks...
|
|
|
|
|
Did you load correct palette before you started adjusting color?
If not load pallete. Menu/Image/Load palette. You need to find file *.pal which has 256 color. After you load it you will see all 256 color. The rest you doing correct. VS6 may not show all 256 colors but I am no sure.
sorry if misslead you.
|
|
|
|
|
Thanks for the reply
From where Can I load the *.pal palette(Which one & from where)
|
|
|
|
|
I just send file to your email 256palette.pal
|
|
|
|
|
|
I would
Be FaithFull To Your Work.
|
|
|
|
|
Usman Tasleem Akshaf wrote:
I would
Really why ?
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
Usman Tasleem Akshaf wrote:
I would
What change do you want bring with IE settings?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi i have a problem that i couldn't find a solution all over the net here it is:
I want to create dynamic menu item (at runtime) in a dialog modal.
Problem:
I assign the same ID for all dynamic menu items
ON_COMMAND(ID_ALL , OnTreeProgramadapter)
Then everytime I need to insert dynamic menu items I use
submenu1->InsertMenu(1,MF_BYCOMMAND, ID_ALL,"Save" )
This way i can know which one is selected using
GetMenuString(1, s, MF_BYCOMMAND);
Everything is great till now but...
In my program I need to enable and disable my menu item so i used
EnableMenuItem(ID_ALL,MF_ENABLED | MF_BYCOMMAND); //and i tried (ID_ALL ,MF_ENABLED | MF_BYPOSITION)
Only what happens is that only the first menu item (position 1 = last added) that is enabled and disabled as i want
My question is: HOW CAN I ENABLE AND DISABLE ALL THE REST knowing that i always want them all disabled or enabled
thx in advance 4 ur help
PS: i don't want to use different IDs for each new menu item.
/\(-)|\/|/\|)
|
|
|
|
|
Add a message map handler for the command UI
ON_UPDATE_COMMAND_UI(ID_ALL, OnUpdateIDALL)
Then the handler itself will look like this
void CMultipleMenuItemsDoc::OnUpdateID_ALL(CCmdUI *pCmdUI)
{
// Get the menu in question - HOWEVER you do this
CWnd* pWnd = theApp.GetMainWnd();
CMenu* pMenu = pWnd->GetMenu()->GetSubMenu(0);
// Get the string of the menu item
CString strTest;
pMenu->GetMenuString(pCmdUI->m_nIndex, strTest, MF_BYPOSITION);
// Then you can disable or enable it based on whatever criteria you have
pCmdUI->Enable(false);
}
|
|
|
|
|
Thanks for ur concern but i still have a problem
U see i just tried ur suggestion but i am still unable to disable or enable all my dynamic menu items together in fact i can only control the last one i added and the rest i can't control at all
Can u help?
/\(-)|\/|/\|)
|
|
|
|
|
Halawlaws wrote:
Problem:
I assign the same ID for all dynamic menu items
[...]
Only what happens is that only the first menu item (position 1 = last added) that is enabled and disabled as i want
Try using a range of IDs (one for each different item) in combination with ON_COMMAND_RANGE / ON_COMMAND_RANGE_EX
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Respected all
I have to display a BitMap using VC++ i did it but now i have to display it on Full moniter Screen,that's after executing VC program the bitmap display on full sceen using 800*600 area of screen.
how i can do ??
David
david
|
|
|
|
|
hi,all
I got a problem about ole, now I'm developing a program to read PDF file as IE does. I made it to be a activex document client program, and using it to read *.doc or *.xls or even the activex document file which produced by my own activex document server program, it works fine, but when I tried to open PDF file, a message box popped up, and it said "no much memeroy enough to run it",and I traced to code, found it was popping up when COleClientItem::Activate(nVerb, pView, lpMsg) was being called.
how can I open pdf successfully? thanks, regards.
|
|
|
|
|
Hi all,
I want to run an exe file on a computer in a local network.
How to do this?
Please help me.
Cheers,
MILAD.
Every new thing you learn,Gives you a new personality.
|
|
|
|
|