|
if u'll post some code, that will be great!
RG
|
|
|
|
|
Use owner-draw or custom-draw.
I wouldn't use child Progress controls. Better to draw the progress bar by yourself. Once you understand OwnerDraw or CustomDraw, that is very easy (just draw a filled rect).
There are some articles here and on CodeGuru, about those techniques. If you're lucky you only have to do some Cut&Paste.
Paolo.
|
|
|
|
|
Hi.
I designed a database as data source for an application I wrote. The
database has about 19 tables and several 1:n relations.
Esspecially one table, that has 2-3 relations, like [Patienten].[Kasse] =
[Kassen].[ID].
Now I'd like to query this table and instead of all the reference longs
should stay the [name] field of the related record.
I know how to do it for one field with an inner join like
'SELECT Name, Vorname, Kassen.Name FROM Patienten INNER JOIN Kassen ON
Patienten.Kasse = Kassen.ID'
But how can I do it for more fields? I can't cascade INNER JOIN, or is it
possible?
Thankfull for any answer...
--------------------------------------------------
"Pseudocode is code to demonstrate a concept, not designed to be run.
Like certain Microsoft software. "
|
|
|
|
|
Don't mind, I found out that cascading inner joins is possible.
--------------------------------------------------
"Pseudocode is code to demonstrate a concept, not designed to be run.
Like certain Microsoft software. "
|
|
|
|
|
|
SetFileAttributes(lpFileName, FILE_ATTRIBUTE_HIDDEN);
Christian
#include "std_disclaimer.h"
The careful application of terror is also a form of communication.
Eagles may soar, but weasels don't get sucked into jet engines.
|
|
|
|
|
I have a custom windows message, that I need to map for my MFC project. However, I have NO clue on how to map a custom message, since it obviously doesn't appear in the "standard" list of messages.
Can anyone help?
|
|
|
|
|
If your message ID is a constant, use ON_MESSAGE. If you get the ID by calling RegisterWindowMessage(), then use ON_REGISTERED_MESSAGE.
--Mike--
http://home.inreach.com/mdunn/
"Make sure that if you are using a blow torch that you don't set anything on fire."
-- Chris Maunder
|
|
|
|
|
Hello all,
Could you please help me with this situation?
In the middle of my program, I create a FULL SCREEN TRANSPARENT HIDDEN WINDOW which is TOPMOST. When I click on my left mouse button, I want to retrieve the handle to the window under cursor(next z-order) underneath this transparent hidden window.
I am doing it like this when handling WM_MOUSEMOVE message, it is causing too much flickering.
// A full screen transparent window shows up
// Temporarily ShowWindow(hwnd, SW_HIDE) the full screen transparent window
// GetCursorPos() and do a WindowFromPoint() to get the window under cursor
// ShowWindow(hwnd, SW_SHOW) full screen transparent window
Could you show me how to use WindowFromPoint(), ChildWindowFromPoint(), and ChildWindowFromPointEx() to achieve this without hiding and showing the full-screen transparent window? Or is there any other way to do this? Thank you very much in advance.
|
|
|
|
|
Is it impossible to save and read struct to file if it contain the type CString so:
---------------------------
typedef struct p{
CString name;
int age;
}p
--------------------
p* s = new p;
...
...
file.Write(s, sizeof(p));
|
|
|
|
|
A CString doesn't contain the actual contents of the string, but a pointer to it. So you can't just write a binary copy of the struct to a file. Either use the MFC serialization mechanism or define your own I/O routines for the struct that save and restore the text in the string.
|
|
|
|
|
|
how can i display the progress of the CFptConnection::GetFile() method using the CProgressBar?
thanks
|
|
|
|
|
You wont be able to do it with the CFptConnection::GetFile() method, you'll have to use a combination of CFptConnection::OpenFile() and CInternetFile::Read(). Then all you need to do is a simple calculation based on the file size and the amount that you have downloaded.
-Ben
---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic"
|
|
|
|
|
I'm having a hard time trying to create a new dialog box and getting it to open whenever the program opens in a Dialog Based application in MFC. Can ANYONE help?
I Want Chicken, I Want Liver, Meow Mix, Meow Mix, Please Deliver...
|
|
|
|
|
If you want to show a dialog when the program opens you can declare the dialog instance and the DoModal. Note: This is not the way to create a splash screen.
Ex:
CMyDialog dlg;
dlg.DoModal();
You should include the above code on the PreCreateWindow or similar.
Hope it helped!
|
|
|
|
|
Hello,
UC I have made a program to retrieve data from the database for some person.
Now,everytime he formats the disk or takes the program along with the database to another system,he should install the database using ODBC...present in control panel.
How to automate this installation task from the program?
That person is extremely new to computers and can just work on it and nothing else.
Please help me fast.
Thanx:
|
|
|
|
|
I haven't done this but the ODBC info is apparently in the registry: On this W2000 machine under HKEY_CURRENT_USER\Software\ODBC\ODBC.INI. Try exporting the appropriate entry as a .reg file.
|
|
|
|
|
I have a tree view on the left and a formView on the right
i need to make the tree view as dockable window
how do i do it ?
Can anybody tell ?
parag
|
|
|
|
|
Does anyboday knows how to show ClassWizard in VisualStudio.NET ?
|
|
|
|
|
There is no Class Wizard in VS.NET. However you can make command and message handlers through property window.
_________________________________
Get RadVC today. Play RAD in VC++
http://www.capitolsoft.com
|
|
|
|
|
Alright, i wrote a small program to download a file using a CInternetSession and a CInternetFile.
1) How do i retrieve the total FileSize of the file that should be downloaded?
2) The File is Truncated at random positions (?), when writing the buffer (file->ReadString(line)) to a file with fputs(outfile,line). How can i fix this ?
any help would be greatly appreciated !
|
|
|
|
|
please help me, i am quite clueless about that . Or is there another way of downloading files from the net ?
|
|
|
|
|
Hi u can d/l files using CPftConnection and look for files on the server using the CFileFind class.
CpthConnection *pFtp;
pFtp = InternetSession.GetFtpConnection(...);
|
|
|
|
|
Are you trying to download binary files or text files?
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|