|
Hello,
Does anyone know how I can calculate how many bytes are
recieved and send from/to the internet?
(Same as in the Dial-Up Network)
Thanks in advance,
Gregor Schuster (Germany)
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi,
These Statistics are held in the registry in the Performance Statistics, Thus if you Poll the Stats with a timer you can get an idea of whats happening,
Example
Another way is to get the info direct from the DUN using maybe FindWindowEx, this seems a bit cumbersome though
Regardz
Colin Davies
Do Geese See God
|
|
|
|
|
Does any one have a good tutorial or sample code for creating the new ballon style tool tips that are in win2000.
|
|
|
|
|
I've got an article partially done on this subject, actually. But I set it aside a while ago to do some other, more interesting articles. If you email me with your address, I can send you some sample code.
--Mike--
http://home.inreach.com/mdunn/
|
|
|
|
|
Does anyone know where I can find the ActiveX Designer SDK? I found examples in MSDN but not the SDK.
PS. I did not find it inside the platform SDK.
Thanks, Italo S Weiss
|
|
|
|
|
how can i put a tab at the bottom of view (over status bar) which allows to change view - like frontpage (Editor / HTML / Preview).
thankyou
berkut
|
|
|
|
|
I have created an ATL/WTL project with MDI and dialog-based
form view. On the form I have placed Ok/Cancel -buttons.
When either of those buttons are clicked I'd like to do
some processing & then close the MDIChild window. I can't
get it to work. Suggestions anyone?
|
|
|
|
|
I have created an ATL/WTL project with MDI and dialog-based
form view. On the form I have placed Ok/Cancel -buttons.
When either of those buttons are clicked I'd like to do
some processing & then close the MDIChild window. I can't
get it to work. Suggestions anyone?
|
|
|
|
|
How to use the skin concept to our own application ( not the Media Player ). If any sample code or suggestions please do send me.
Thanks in advance.
Bye
|
|
|
|
|
|
Hi,
I would like to create an enhanced metafile giving the size in millimeter. I give the device context of the screen to create the metafile.
Is there a way to specify another resolution for the metafile ? With the screen device context, the resolution is 96dpi. Then when i want to resize the metafile, the aspect of the metafile is not so good.
Maybe i should do another way ?
Thanks by advance for your help
Jean-Yves
|
|
|
|
|
I use the resolution from the default printer, but then there must be a printer installed. That works fine, for my print preview framework.
LD
|
|
|
|
|
I have a dialog with 2 CTreeCtrl Controls on it.
I wish to drag items from one to the other.
Anyone know how to do it ?
|
|
|
|
|
Hi ...
look in codeguru.com for vinyatadkas.. drag and drop between two treecontrols.
with love
shafeeque o.k
|
|
|
|
|
Hi ...
look in codeguru.com for vinyatadkas.. drag and drop between two treecontrols.
with love
shafeeque o.k
|
|
|
|
|
user stars program and changes keyboard layout (taskbar small icon)
(clicks at icon in toolbar what) runs new thread with dialog
-> this changes selected keyboard back to system one (taskbar small icon)
escapes dialog
-> returns to its keyboard laybout (what else except laybout?)
when he changes layout in dialog thread all is fine
escaping/reopen dialog keeps his settings
for test i tryed to call fix value (i have sk lang and keyboard installed)
bool bul = SetThreadLocale(MAKELCID(MAKELANGID(LANG_SLOVAK, SUBLANG_DEFAULT), SORT_DEFAULT));
before dialog opening (in new thread) but it not helped (makes nothing except returns true)
i found is possible to GetKeyboardLayout in mail thread (HKL)
but (from help) for ActivateKeyboardLayout is necessary (expecialy w9x) call LoadKeyboarLayout before
and its oputut set to ActivateKeyboardLayout
1.
is any back tranformation from HKL to parameters wanted for LoadKeyboarLayout?
2.
why SetThreadLocale "makes nothing"? or for what is good?
what all is necessary to set for new thread to keep main thread lang etc. settings?
more details:
first try
seems working (keyboar icon in taskbar relives)
but under nt4, w2000 only
under w98 ignores
main thread
StData *pData = new (StData);
pData->m_Layout = GetKeyboardLayout(0);
if((hThread = CreateThread(NULL, 0, Thread, (void*)pData, 0, &ThreadID)) == NULL)
ui thread
StData *pData = (StData*) pVoid;
HKL boo = ActivateKeyboardLayout(pData->m_Layout, 0);
AfxMessageBox("!");
second try again not works under w98
main
BOOL boo = GetKeyboardLayoutName(pData->m_LayoutName);
ui
//HKL Layout = GetKeyboardLayout(0);
//UnloadKeyboardLayout(Layout);
HKL hkl = LoadKeyboardLayout(pData->m_LayoutName, 0);
ActivateKeyboardLayout(hkl, 0);
AfxMessageBox("!");
do you see reason?
thanks for reply
t!
|
|
|
|
|
Hi!
I have two question to the experts:
1.Can i incorporate HTMLHelp window in my application? HHCTRL.OCX is not insertable.
2.Can i retrieve contents of chm-file?
Thank you, i am grateful to you for the help.
|
|
|
|
|
Could somebody please give me a simple example of a Mfc app using Threads???
greetz joEp mEloEn
|
|
|
|
|
There are several example programs in the platform SDK that use multiple threads.
Stephen
|
|
|
|
|
Hi
I have an CFrameWnd that i use in an Ext. DLL
The problem is, when is cleans up, i get an error
with the heap. (something with not local heap)
Have any one an solution ?
pFrame->Create(NULL,
_T("Print"),
WS_OVERLAPPEDWINDOW,
CFrameWnd::rectDefault,
AfxGetApp()->m_pMainWnd,
MAKEINTRESOURCE(IDR_PRINTMENU));
// start the modal loop
pFrame->RunModalLoop(MLF_SHOWONIDLE);
pFrame->DestroyWindow();
|
|
|
|
|
I want copy items from the tree view (in application) to a Desktop or explorer,
but i don't know.
I want a sample please.
|
|
|
|
|
I want copy items from the tree view (in application) to a Desktop or explorer,
but i don't know.
I want a sample please.
|
|
|
|
|
I'd appreciate a pointer here, MSDN, VC++6 docs, etc., to where the structure or field definitions are shown for the varios types of strings in the resouce string tables. I'm looking for "this is the title, this is the default extension" type info so I can edit these with the string table resource edititor
|
|
|
|
|
I am using this call to print a bitmap from one picture box to another:
BitBlt(*m_Field.GetDC(), 0, 0, 48, 48, *m_Skin.GetDC(), 0, 0, SRCCOPY);
this works but it doesn't get repainted.. for example when I minimize the dialog or drag another window on top of it.
anyone know how I can make this auto refresh?
|
|
|
|
|
You need to do it in OnPaint, which is called whenever a window needs repainting.
|
|
|
|