|
HI ,
Could any one tell me if it is possible to remove the Client area and view only the non-client area in an application (single doc type),
Anand
|
|
|
|
|
simplely resize the window, such that client area is not visiable
The World is getting smaller and so are the people.
|
|
|
|
|
In visual c++, how to add the button on the message box example ok button, cancle button and abort button.....
|
|
|
|
|
Pls try with the below code, Its way u have to use the buttons
MessageBox("Please Confirm Exit !! ","Exit Application",MB_SYSTEMMODAL+MB_ICONQUESTION+MB_YESNO)==IDYES)
NRVSundar
NRVSundar
|
|
|
|
|
Hi there
I have created a simple "Hello World" Win32 Application (No MFC!)
I want to remove the title bar.
I have tried using the style "WS_DLGFRAME" in create window but still i get a Title bar
Can somone help me remove the tile bar from my window.
Thanx in Advance
modified 21-Apr-21 21:01pm.
|
|
|
|
|
WS_CAPTION style defines whether your window has a title bar or not. If you remove this style from the style definition flags used with 'CreateWindow' call, the window will not have a title bar.
Remember, that the system menu flag (WS_SYSMENU) is dependant on the WS_CAPTION flag. Having the first without the latter may cause an assertion.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Thanx for ur reply.
By the time i recieved ur reply i had already solved the problem
I have used WS_POPUP|WS_VISIBLE style and the thing is solved
modified 21-Apr-21 21:01pm.
|
|
|
|
|
Hi,
I used CFile object.I included afx.h as header.I am getting the following error in calling the function CallWindowProc and SetWindowLong .I did not include windows.h because I am getting error if I include both windows.h and afx.h
d:\test_plugins\gen_minisdk\trayctl.cpp(144) : error C2664: 'CallWindowProcA' : cannot convert parameter 1 from 'void *' to 'long (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
Conversion from 'void*' to pointer to non-'void' requires an explicit cast
d:\test_plugins\gen_minisdk\trayctl.cpp(169) : error C2664: 'SetWindowLongA' : cannot convert parameter 3 from 'long (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)' to 'long'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
Karteek
|
|
|
|
|
Explain your steps in more detail. The errors you posted and the CFile object are not related in any way.
If you are trying to use MFC without the project wizards, then in addition to including the afx.h header, you must link with the appropriate MFC library.
If you are trying to create a Winamp plugin, like it seems, then remember that in the XP world, you cannot subclass a window by replacing window procedures anymore. At least so it says in the MSDN.
The example provided by NullSoft may no longer function properly. I suggest you either contact them or spend some time experimenting. However, what I do know, like I stated, is that these errors have nothing to do with the CFile object. They might pop up because of the MFC header, but in that case, you'll just need to re-check your function calls and remember the linkages.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
I have an application where I need to have a grid, or something similar to an Excel spreadsheet. I inserted the Microsoft Spreadsheet 9.0 into my application, and I think I can make this do what I need it to if I knew how to control this thing. Has anybody used this before, or know of some good publications that I can figure out how to control it.
For example, I want to be able to set the column widths, and variable types...I'd even like to be able to make some columns read-only if possible. I'm just not figuring this out by looking at the function lists.
Thank you for your help.
I have never failed when programming. Instead I have succeeded in finding thousands of ways of crashing a computer!
Douglas A. Wright
dawrigh3@kent.edu
|
|
|
|
|
i wish to run my .exe program in a pc that unfortunately is nt installed with visual c++ so is there anyway i can get it run?
|
|
|
|
|
For that you need to make a installer for yuor application, and install all the neccessary dlls that ur applications requires. To find out that use depends.exe to determine on what all dlls ur application depends on.
The World is getting smaller and so are the people.
|
|
|
|
|
Hello
Please run the dependency walker under Ms VC Tools
If you do not have it search the microsoft website and I "think" you may download one from there.
Most VC functions may be installed in one component.
You may download this from http://sourceforge.net/project/showfiles.php?group_id=21558
It is at the very bottom of the page. Take extreme care (check for os before you install them.) can really screw xp 2000 and some other editions up.
Shold only be needed in NT 4. NT3. 95 some editions of 98. Every time you have to bloat your install files say "THANKS BILL" really loud.
Best Wishes and Happy Holiday's,
ez_way
|
|
|
|
|
Hi
I want to copy the contents of a CString into a WCHAR array:
WCHAR m_wszTitle[51];
How can i do this ?
|
|
|
|
|
wcscpy(m_wszTitle, CT2CW(strCString), 51)
--
Talk to the hand!
|
|
|
|
|
I get :
'CT2CW' : undeclared identifier !!!
i use vc++6.0
i also can't find CT2CW in the MSDN
|
|
|
|
|
|
Try:
USES_CONVERSION
wcscpy(m_wszTitle, CT2CW(strCString), 51)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
Ah yes. The ATL3 macros. :shudder:
--
Talk to the hand!
|
|
|
|
|
i used wcscpy(m_wszTitle, A2W(m_strDlgTitle));
it worked !!
i also had to include atlconv.h
|
|
|
|
|
hi there people of code project need more help can some one tell me where i can find the dial up info on win xp like is it in the registry some file somewhere or some thing. there are lots of programs that can reveal your saved dial up pass how do they do in ooh c++ only please
help me
H43K4Z
|
|
|
|
|
I dunno, but maybe it would go better for you if you asked a question in your header. Most of us are also over 12, and so calling yourself h4ek4z does not help, it's bloody annoying to look at and gives an image of you as a 10 year old script kid.
Finding out what a users password is also does not sound like a sociable thing to be wanting to do.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
hi there...
i have been writing a simple image processing aplication under visual c++ .net, using the CImage class. but now i have to change it to be compiled under visual c++ 6 (without using gdi plus libraries...). is there any class like CImage that works under vc6?? i mean, i need a functions to open a bitmap file, to save it, to get the width, height, the pixel values, to construct one from parameters (array of pixel values, width, height, bits per pixel, just like the CImage class)...
could anyone give me a hand on that?? does it exist anything on vc6 like this??
|
|
|
|
|
Anonymous wrote:
does it exist anything on vc6 like this??
Yes, it's called GDI+. You just need an up to date SDK in order to use it. Read my GDI+ articles, they were written with VC6.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Hello guys,
I created sub (child) dialogs on a parent dialog, using the class provided in this place:
http://www.codeproject.com/dialog/childdlg.asp?target=child%7Cdialog
It all works well, except I am not sure how to get all the child dialogs to interact with each other or with the parent dialog. Basically, I have a main child dialog displayed with the parent's OnInitDialog, and every button pressed on this child dialog should/will replace it with another corresponding (sub)child dialog (having being assigned them to the same GroupBox in the parent dialog). The problem is the buttons in all child dialogs do not seem to do anything, pressing them will not trigger any belonging functions at all. Only the buttons in parent dialog operate properly and can use them to switch between the child dialogs to show in the GroupBox.
Did anyone have experience with this?
Thanks alot
|
|
|
|