|
You mean MFC's CDialog 's member functions DoModal and Create ? The class has a member variable called m_hWnd which can be access directly or by calling the member function GetSafeHwnd .
Steve
|
|
|
|
|
Use FIndWindow();
Cheers
"Peace of mind through Technology"
|
|
|
|
|
|
Search in the MSDN for following functions:
1. LoadLibrary : Loading the library in the process
2. GetProcAddress : Get the address of a function
3. FreeLibrary : Un-mapped the library
Regards
Amar.
|
|
|
|
|
Thank you very much!!!
-------------------
I am learning C++ and English
|
|
|
|
|
You need to add it as a reference to your project.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I am developing a database application programe.My database is SQL Server.
I read a coloum value with datetime type into a byte buffer in the program.I would like to display it in list control.
how to convert it into CString object.
Thank you very much!
|
|
|
|
|
What database access technology are you using? Can you show the code which reads the column in question?
Steve
|
|
|
|
|
uglystone wrote: I read a coloum value with datetime type into a byte buffer in the program.
Put that ByteBuffer in COleDateTime, and using it GetDay... function get CString object using CString::Format function
"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
|
|
|
|
|
ThatsAlok wrote: using it GetDay... function get CString object using CString::Format function
Or you can just call COleDateTime::Format() to do the formatting for you...
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Ryan Binns wrote: you can just call COleDateTime::Format() to do the formatting for you...
Right!
"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
|
|
|
|
|
|
I have created a bitmap (8X8)pixels. It is designed to show diagonal lines.
Using this bitmap i have created a Pattern brush and using that brush i have drawn one rectangle. But the problem is that What i see in the OnScreen cannot be same in printout.The diagonal lines are too closer.I think it is due to number of pixels per inch in Screen varies with Printer
|
|
|
|
|
You might try using CreateHatchBrush[^] instead of CreatePatternBrush.
Software Zen: delete this;
|
|
|
|
|
Thanks for replying soon Gary R. Wheeler.
CreateHatchBrush can be used for creating single hatch lines in the diagonal view.But i want to create double hatch lines closely in the diagonal area.Thats why i have created Bitmap using double hatches in the diagonal area and using that.Can u please help in this?....
|
|
|
|
|
The problem you are having is due to the fact that a brush draws in terms of pixels. The printer has a much higher resolution, causing the bitmap hatch on the screen to appear much smaller.
I think the solution is to use a different bitmap for the printer. The printer bitmap should be scaled larger by the ratio of the printer resolution vs. the screen resolution.
I'm guessing here; this is something you will have to play with to achieve acceptable results.
Software Zen: delete this;
|
|
|
|
|
I have added a MFC class with the template selected as MFC ODBC consumer, in my project. The project is using an Access database. But when I insert a record in the database using AddNew() its giving me the error that "Recordset is read only".
Can anybody help me.
aasstt
|
|
|
|
|
How are you opening / creating the recordset?
|
|
|
|
|
i have to develope one pop up window in MFC.. since i'm a beginner in VC++, i find it very difficult to do it.. kindly send me some sample code for this...
Ravi Chandran.C
|
|
|
|
|
|
i need some sample codes to develope sine i'm a beginner
Ravi Chandran.C
|
|
|
|
|
Hi,
How to have bitmap captured from visible+nonvisible area from the scrollview.
I am reposting this because noone answered this previously.
Thanks
cric
|
|
|
|
|
Not sure what you mean by visible+nonvisible area. Do you mean client area + non-client area?
In that case you use CWindowDC instead of CClientDC.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Steve ,
I do not want non client area.
But I want visible + nonvisible area from scrolview
thanks
cric
|
|
|
|
|
Ahh, by nonvisible, you mean, the area that's scrolled out of the current view, I get it now.
I believe the bitmap of scrollview is only the size of the window, so if you're drawing outside of it, it get's clipped.
I think you might have to create a seperate bitmap the size of the total document, select it into a temporary memory dc, and draw the entire document on the new bitmap. Then you can do whatever you need to do to the bitmap.
- S
50 cups of coffee and you know it's on!
|
|
|
|