|
Hi,
I have to open a document file (word97) in a c++ program.
Where can I find the doc file specifications?
Thanx.
|
|
|
|
|
Go to www.wotsit.org and search for "doc".
==================
The original message was:
Hi, I have to open a document file (word97) in a c++ program. Where can I find the doc file specifications? Thanx.
|
|
|
|
|
hi
how do i set a bitmap button with a PUSH BUTTON style??
the push button style works just with a text button....
(in mfc)
|
|
|
|
|
Hi All
I am trying to show an overly large dialog sheet within a tab control. By overly large, I mean
that the dialog sheet does not fit on the normal sized page in the tab control. I'm thinking
that I will need to somehow put a scroll view inside the tab sheet first, then put my dialog
in the scroll view.
Has anyone done anything like this? Is there an easier way to do this?
|
|
|
|
|
Can anyone tell me how to drag an object from an application to the shell - much like Internet Explorer where you can drag a picture in a HTML page to a folder and having the graphics file created on disk.
I have looked into the documentation, and it seems that tehre are some COM classes for doing it, but I cannot make it work.
Dos anyone know of a sample or article on the subject.
|
|
|
|
|
How can I get the file name of a module having an HWND or ProcessID. I need it in an Win95 application.
I can not use GetWindowsModuleFileName() because is not compatible on Win95.
Please help !
|
|
|
|
|
Here's something that may help:
Use CreateToolhelp32Snapshot to get a (handle) to
a snapshot of the processes etc., then traverse the
processes using Process32First and Process32Next
(using the handle returned by CreateToolhelp32Snapshot
and a PROCESSENTRY32 structure).
The PROCESSENTRY32 structure has a member called:
szExeFile
which will contain the path and filename of the
executable file for the process.
In your case, if you have a ProcessID, you could
compare it to the th32ProcessID member of the
PROCESSENTRY32 structure (or th32ParentProcessID)
to isolate the process you are after, and then use
the szExeFile member.
See 'Tool Help Library' in MSDN library, and go to
Using the Tool Help Functions -->
Taking a Snapshot and Viewing Processes
It appears that THL is Win 95/98/NT/2000 compliant.
Hope that helps.
==================
The original message was:
How can I get the file name of a module having an HWND or ProcessID. I need it in an Win95 application. I can not use GetWindowsModuleFileName() because is not compatible on Win95.
Please help !
|
|
|
|
|
Hi,
I would like to know how to get the device context of a MCI window.
I've already created that window (Hwnd). It is holding the frame of a avi video
in a snapshot. And how to save it as a Cbitmap. Thanks a lot
The code is like :
m_hAVI = MCIWndCreate(m_hDlg,
AfxGetInstanceHandle(),
MCIWNDF_NOPLAYBAR |
MCIWNDF_NOAUTOSIZEWINDOW |
MCIWNDF_NOERRORDLG |
WS_VISIBLE |
WS_CHILD |
WS_BORDER |
WS_DISABLED,
NULL );
MCIWndUseFrames(m_hAVI);
MCIWndOpen(m_hAVI,(LPCSTR)m_efile,0);
MCIWndSeek(m_hAVI, m_estart_frame);
// Show mci windows
::SetWindowPos(m_hAVI, HWND_BOTTOM,
x_mci, y_mci, m_width,
m_height,
SWP_NOACTIVATE);
Best Regards,
Julian
|
|
|
|
|
hi,
i'm looking for a class to make a ftp client and server.If you have a program which does it, it will be welcome to.
thanks.
|
|
|
|
|
Hi!
The Ultimate TCP/IP 3.0 has the FTP client and server classes and ActiveX controls. Check our web site at www.dundas.com.
If you have any questions just e-mail me.
Regards,
Alex Gorev,
Dundas Software.
==================
The original message was:
hi,
i'm looking for a class to make a ftp client and server.If you have a program which does it, it will be welcome to.
thanks.
|
|
|
|
|
Can anyone help me with this ? I tried resizing controls like buttons and edit box using the CWnd function SetWindowPos. There this function needs a valid HWND which i found that controls don't have. Anyone have a solution? I would great apprieciate it...
Nyon
|
|
|
|
|
Are you talking about the first parameter of CWnd::SetWindowPos()? You only use that if you are changing the Z-order of the control (in dialogs, Z-order determines the tab order of the dialog's controls). Just pass NULL for that parameter, and be sure to include the SWP_NOZORDER flag to indicate you're not changing the Z-order.
--Mike--
==================
The original message was:
Can anyone help me with this ? I tried resizing controls like buttons and edit box using the CWnd function SetWindowPos. There this function needs a valid HWND which i found that controls don't have. Anyone have a solution? I would great apprieciate it...
Nyon
|
|
|
|
|
No. I know what the first parameter of SetWindowPos() functions do. What I mean was in the SetWindowPos() function, they check if the control that was calling this function a valid window. In fact, they do an assertion check
ASSERT(::IsWindow(m_hWnd));
and i found out that this value is NULL for all controls. Thus I was asking if anyone know a workaround for this or has any solutions. Thanks.
==================
The original message was:
Are you talking about the first parameter of CWnd::SetWindowPos()? You only use that if you are changing the Z-order of the control (in dialogs, Z-order determines the tab order of the dialog's controls). Just pass NULL for that parameter, and be sure to include the SWP_NOZORDER flag to indicate you're not changing the Z-order.
--Mike--
================== The original message was: Can anyone help me with this ? I tried resizing controls like buttons and edit box using the CWnd function SetWindowPos. There this function needs a valid HWND which i found that controls don't have. Anyone have a solution? I would great apprieciate it...
Nyon
|
|
|
|
|
Sorry, I found the solutions for this. Thanks Anyway.
Nyon
==================
The original message was:
No. I know what the first parameter of SetWindowPos() functions do. What I mean was in the SetWindowPos() function, they check if the control that was calling this function a valid window. In fact, they do an assertion check ASSERT(::IsWindow(m_hWnd)); and i found out that this value is NULL for all controls. Thus I was asking if anyone know a workaround for this or has any solutions. Thanks. ================== The original message was: Are you talking about the first parameter of CWnd::SetWindowPos()? You only use that if you are changing the Z-order of the control (in dialogs, Z-order determines the tab order of the dialog's controls). Just pass NULL for that parameter, and be sure to include the SWP_NOZORDER flag to indicate you're not changing the Z-order.
--Mike--
================== The original message was: Can anyone help me with this ? I tried resizing controls like buttons and edit box using the CWnd function SetWindowPos. There this function needs a valid HWND which i found that controls don't have. Anyone have a solution? I would great apprieciate it...
Nyon
|
|
|
|
|
Hello -
I've some problems to create an Enhanced Metafile out of a Aldus Placeable Metafile. The following code works very well for Win98, but, for some reason, in WinNT all "text" output is painted upside-down and backwards. Besides, the bounding rectangles are misaligned.
Does anyone have some tip?
The code is the following:
// Aldus Pleaceable Metafile header
struct APMFILEHEADER
{
DWORD dwKey;
WORD hmf;
SHORT left;
SHORT top;
SHORT right;
SHORT bottom;
WORD inch;
DWORD dwReserved;
WORD checksum;
BYTE data[1];
};
...
// pData is a BYTE* to a memory buffer where the
// source file contents were loaded
const APMFILEHEADER* pApmH = (const APMFILEHEADER*)pData;
METAFILEPICT mfp;
mfp.hMF = NULL;
mfp.xExt = pApmH->right - pApmH->left;
mfp.yExt = pApmH->bottom - pApmH->top;
mfp.mm = MM_HIENGLISH;
// Construct a Enhanced Metafile from the
// Windows Metafile bits, usign the
// Aldus Placeable metrics
HENHMETAFILE hEmf = ::SetWinMetaFileBits(
dwSize - offsetof(APMFILEHEADER,data),
pApmH->data,
NULL,
&mfp );
Thanks in advance.
- Thales
|
|
|
|
|
Hi there,
I do have a problem by making the title of a groupbox to act like a button (also by coloring
it - there is no way to change color by SetFont()). Is there any way to notify an event
as LButtonUp? Do you know any class derivated from CButton which can handle this
problem? Or do you have any other suggestions?
Thank you in advance,
ruedi
|
|
|
|
|
Hi All!
I have a big problem with docking layout. As You know docking controls are docked by the same way (rectangle layout): i.e. VERTICAL docking controls are between HORIZONTAL - see the picture below.
---------
| T |
|-------| T - top
| | | | L - left
|L| |R| R - right
| | | | B - bottom
|-------|
| B |
---------
I have just one question to You...
Is there the way to modify rectangle layouts to HORIZONTAL docking controls are between VERTICAL (see the picture below)?
---------
| | T | |
| |---| | T - top
|L| |R| L - left
| | | | R - right
| |---| | B - bottom
| | B | |
---------
I'll be pleased for any idea
Beast regards,
Yuri.
|
|
|
|
|
Take a look here:
http://ftp.datamekanix.com/sizecbar/faq.html#dockbarlayout
==================
The original message was:
Hi All!
I have a big problem with docking layout. As You know docking controls are docked by the same way (rectangle layout): i.e. VERTICAL docking controls are between HORIZONTAL - see the picture below. --------- | T | |-------| T - top | | | | L - left |L| |R| R - right | | | | B - bottom |-------| | B | --------- I have just one question to You... Is there the way to modify rectangle layouts to HORIZONTAL docking controls are between VERTICAL (see the picture below)? --------- | | T | | | |---| | T - top |L| |R| L - left | | | | R - right | |---| | B - bottom | | B | | ---------
I'll be pleased for any idea
Beast regards, Yuri.
|
|
|
|
|
Hello,
how can I translate VBA-constructs like
Array(Array(1, 2), Array(2, 2), Array(3, 1))
to Visual C++?
This is important to use the Excel-method "Workbooks.OpenText(..., FieldInfo, ...).
Who can help?
Thanks
Andreas Jäger
PMC
|
|
|
|
|
Hi Andreas!
You must use SAFEARRAYs. You can create a SAFEARRAY where each element is another SAFEARRAY and in this second array each element is integer.
Regards,
Alex Gorev,
Dundas Software.
==================
The original message was:
Hello,
how can I translate VBA-constructs like Array(Array(1, 2), Array(2, 2), Array(3, 1)) to Visual C++? This is important to use the Excel-method "Workbooks.OpenText(..., FieldInfo, ...). Who can help?
Thanks Andreas Jäger PMC
|
|
|
|
|
Hi everybody,
i have a dialog with a treectrl and several other controls like combo and listboxes,
and i want that if you doubleclick a treenode/item that his related control in the
dialog gets the focus. The treenode stores a pointer to his related control.
I tried pControl->SetFocus() in the OnDblClk handler but it doesn't work.
Need help.
TIA, Chris
|
|
|
|
|
Hi Chris,
Its' not clear to understand your need. What I guess was you want to set a focus to
child control. Get a window handle of that control using pControl->GetSafeHwnd()
which will return HWND, Using this handle get a pointer ot that window using
FromHandle(). Use this returned pointer to set the focus of that window. This should
work. If not, feel free to mail me.
==================
The original message was:
Hi everybody, i have a dialog with a treectrl and several other controls like combo and listboxes, and i want that if you doubleclick a treenode/item that his related control in the dialog gets the focus. The treenode stores a pointer to his related control. I tried pControl->SetFocus() in the OnDblClk handler but it doesn't work.
Need help.
TIA, Chris
|
|
|
|
|
If anyone knows how would one write a program in visual c++ that changed the sound output of the microphone ... to create effects like changing your voice thru the speakers ?
|
|
|
|
|
The MSDN code example "DCOM" states that it only works when both machines are running NT. Why will it not work if both machines are running Win9x?
|
|
|
|
|
Hi!
The problem is that Windows NT version 4.0 supports DCOM by default,
but Windows 95 does not. To make it work on W95 you have to download
DCOM95.EXE and DCM95CFG.EXE available from Microsoft Web Site at:
http://www.microsoft.com/oledev
Read more about it in MSDN "HOWTO: Use Win95 as a DCOM Server".
Regards,
Alex Gorev,
Dundas Software.
==================
The original message was:
The MSDN code example "DCOM" states that it only works when both machines are running NT. Why will it not work if both machines are running Win9x?
|
|
|
|