|
Sorry, just realised that that doesnt work.
You need to take do the second loop in reverse otherwise you can lose position if stuff is deleted.
James
|
|
|
|
|
Thanks James
works a treat if u was a woman id marry ya
|
|
|
|
|
While you obviously know the overall project better than us, wouldn't it be a lot better to not allow duplicates in the first place?
|
|
|
|
|
I just installed VS.NET 2003 and am trying to compile an ATL/WTL project. But the compiler complains that it cannot find _resetstkoflw() which gets called in atlalloc.h. However, I have included malloc.h, and the compiler still complains. Has anyone had similar problems?
Best regards,
Daníel
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Never mind, the #include <malloc.h> must of course be above the line that includes atlalloc.h
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
For a standard MFC application, in the upper left corner
there is an icon. I know how to change the icon. How can
I make it not appear and move the text which describes the
program over to the left alittle more?
Please, any response any one can give me will be greatly
appreciated.
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|
|
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
|
|
|
|