|
|
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
|
|
|
|
|
Call RedrawWindow() on your CScrollView object when you get a TVN_SELCHANGED in your CTreeView window.
|
|
|
|
|
I need to insert OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult) function in my CTreeView ?? function create when i add a windows message handler for TVN_SELCHANGED
where can i find the RedrawWindow() function ??
|
|
|
|
|
I normaly dont program MFC (just Win32 for me). But if the wizard dont add a OnSelchanged you will have to add it your self. And in that function call RedrawWindow() which is a member of CWnd which CScrollView inherits from.
|
|
|
|
|
ok it is what i do but it does not work...
the RedrawWindow(); function redraws which view ?? not my scrollview...
i want thats that when an HTREEITEM is selected, my ScrollView will be updated...
|
|
|
|
|
RedrawWindow redraws the window its called on.
CScrollView scrollViewObj;
scrollViewObj.RedrawWindow();
You ofcourse already have an object of CScrollView, call RedrawWindow() on that object and it should work. If that dont work, your WM_PAINT is probably implemented wrong.
|
|
|
|
|
hi guys
i wanna learn abt the directx programming in vc++6,if any one of u have any material on that , so plz send me,
waiting for reply
bye
Adeel
|
|
|
|
|
|