|
Remove WS_SYSMENU from the window style. But you will also lose the minimize and maximize boxes. Dont know if there is a way to remove the sysmenu and keep minimize and maximize. If some one else has that answer it would be interesting to know.
|
|
|
|
|
in
this msdn link
WS_MAXIMIZEBOX
Creates a window that has a maximize button. Cannot be combined with the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified.
WS_SYSMENU must also be applied.... So I guess theres no straightforward way . Though, I bet there's someone who can....
In here is where it could have been applied
Best of luck...
d.
|
|
|
|
|
I don't know any direct way of doing that.
But my idea is to just make the icon invisible.
In the icon eidtor, erase the icon (make it transparent).
But that way can not move the text. See if this fits your need.
|
|
|
|
|
I have a multimedia timer that runs OK and in the Timer Function(function where the timer expires) I use a Com OBject pointer that is a class member
LIke MyComOBj *ptr ;
I am able to call Member functions from this static function , but the call to the Com OBject fails ! What initialization do i need to do on entering the Timer Function ? If this wont work , is there a means of notifying my main Thread of this ? I am using non MFC framework . Please help
|
|
|
|
|
Do the main process pass a pointer to a COM interface to the timer callback function? How does the function get access to COM?
Kuphryn
|
|
|
|
|
The class has a static pointer that is initialized to " this" during construction time. The Callback Function uses this pointer to call Member functions .
|
|
|
|
|
Hello
I've got this code
CGeneralTab* gentab;
CGeneralTab* gentab1;
gentab=new CGeneralTab;
gentab1=new CGeneralTab;
gentab->SetWindowText("xxx");
AddPage(&tab1);
AddPage(gentab);
AddPage(gentab1);
where CGeneralTab is a CPropertyPage derived class. As you can see I wanna create the tabs dinamically but how can I set the tab caption cause calling setwindowtext gives a debug assertion failure message. I've tried setwindowtext from the oninitdialog function of the tab class also but it doesn't work. How do I do that ?
Thank you!
|
|
|
|
|
Dont know how CPropertyPage works. But I dont think its constructor creates the window. And you cant call SetWindowText until you have created the window.
|
|
|
|
|
|
Your window is not created until the tab is actually shown. What you need to do is add a member variable to your page class and set the following just prior to calling AddPage():
strcpy(gentab1->m_caTabTitle,"My New Title");
gentab1->m_psp->dwFlags |= PSP_USETITLE;
gentab1->m_psp->pszTitle = gentab1->m_caTabTitle;
|
|
|
|
|
I have created a application that has a openGL canvas on it.
I am trying to use a trackbar to move an item in on the canvas.
I am able to do it now with all my openGL and trackbar functions in the mainApp.cpp file
If I move my OpenGL functions to a header of their own how can I get the value that the trackbar outputs to that header file.
thanks
steven
|
|
|
|
|
How do I access embeded resources like PNGs/JPGs/BMPs from an HTML page? I don't want to have to store the contents and rebuilt the stuff everytime they get deleted.
-Steven "the yellow dart" Hicks
CPACodeProjectAddict
|
|
|
|
|
use the RES:// protocol when specifying the HREFs
|
|
|
|
|
How can I make a CDC object background with transparent color ??
I'm using: CDC::FillRect(CRect objRect, &CBrush(::GetSysColor(COLOR_WINDOW))). The COLOR_WINDOW is a window color background (which ID color can I use ??) but I want the CDC background transparent.
Any idea ??
[]'s
Cris.
|
|
|
|
|
hello
how i do to remove the toolbar and statubar from application (SDI or MDI).
|
|
|
|
|
These are created in the CMainFrame::OnCreate function.
Just comment out the stuff you dont need.
James
|
|
|
|
|
My way is hide them.
For the toolbar, in the
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
add this line at the end:
m_wndToolBar.ShowWindow(SW_HIDE);
for the statusbar, I have not tried yet. Maybe similar to that.
|
|
|
|
|
|
Hello everyone,
I have a prebuild step which needs the following command/parameters....
IncBuild gpi.rc VS_VERSION_INFO$(_GPI6800)
However, Dev studio wants to use the $(_GPI6800) as a macro substitution rather than directly as I typed it in.
Anyone have any idea how I stop the subtitution?
TIA
James
|
|
|
|
|
Have you tried to just enclose it in quotes? Maybe escaped quotes (i.e. prepended by a backslash)?
If that won't work, you might consider replacing the dollar sign with something that isn't a documented macro initiation character.
|
|
|
|
|
Not sure this will work (as I have never used prebuild), but you could create a *.bat file with the command and call the bat file from prebuild.
|
|
|
|
|
Hello
My WINNT application crashes at startup.
I use quite a few threads in the program. It normally happens when there is data coming in at the Asynch comm port. When i disconnect the comm cable then there in NO crash at startup.
The DR Watson message says, "Access voilation : 0xc000005, Address : 0x0000080.
When I look in the Map file of the Released version, the address mentioned can only be found around :
comct132:COMCTL32.dll
0002:00000080 _imp_ImageList_ReplaceIcon@12 00476080
Does anyone perhaps know how I should continue from here to find the problem.
Thanks
Louis
|
|
|
|
|
Sounds like the rx thread is receiving data before other threads have started up, perhaps expecting some processing done by other threads which doesnt get done?
Can you delay that thread until all the others have started, or at least all initialisation is complete?
James
|
|
|
|
|
Thanks James
Adding a delay, thus waiting for all threads to startup solved the crash problem at startup.
Thanks again for your input.
Cheers
Louis
|
|
|
|
|
I build an interface splitted in two view : a CTreeView (at left) and a CScrollView (right) where i can draw chronogramms.
when i select a HTREEITEM , i want to draw a chronogramm which depends on the HTREEITEM.
The problem is that i need to move the splitbar to refresh the CScrollview after having selected the HTREEITEM to have my new chronogramm...
I use the OnDraw function in my ScrollView in which i call "Trace" function which draw chronogramms.
If u could help me.....ty
Sorry for my english i am french
Franck
|
|
|
|