|
|
how can we change color inside tabcontrol
|
|
|
|
|
if you see this article you can find your answer
whitesky
|
|
|
|
|
In the tabcontrol I have a button which is associated with tab1 . Now I want to change the background color of that button. How can I achieve this?
|
|
|
|
|
Hope I understood your question
Do you need to change background color from button?
whitesky
|
|
|
|
|
|------|
|----------------------|
| color here |
| |
|----------------------|
I want the tab ctrl to look like this. How can I do it
|
|
|
|
|
Im sorry i dont understand what do you said this sahpe is like a TreeCtrl
whitesky
|
|
|
|
|
___________
|tab1|tab2|
|============|
|****color*****|
|****here***** |
|=============|
-- modified at 0:45 Thursday 20th July, 2006
|
|
|
|
|
i am sorry for interrupting you all
but i want to know how to change color on clicking tab
as i dont know this from article
i try this one what it gives error
i try this code in on init dialog where m_tabctrl is variable ofCTabctrl;
m_tabctrl.SubclassDlgItem(CPropertySheet::GetTabControl()->GetDlgCtrlID(), this);
now tell me how can i use this one
yogi thanks
Please mail me
|
|
|
|
|
|
|
ya sir i saw this link
but when i write code in oninit as
m_tabctrl.SubclassDlgItem(CPropertySheet::GetTabControl()->GetDlgCtrlID(), this);
it will give errors as
1)'CPropertySheet::GetTabControl' : illegal call of non-static member function
2)left of '->GetDlgCtrlID' must point to class/struct/union
yogi thanks
Please mail me
|
|
|
|
|
and this
<br />
CTabCtrl *p=CPropertySheet::GetTabControl()<br />
m_tabctrl.SubclassDlgItem(p->GetDlgCtrlID(), this);<br />
whitesky
|
|
|
|
|
ya sir i try this one
CTabCtrl *p=CPropertySheet::GetTabControl();
m_tabctrl.SubclassDlgItem(p->GetDlgCtrlID(), this
but this has the erroras
CPropertySheet::GetTabControl' : illegal call of non-static member function
Please mail me
|
|
|
|
|
yogendra kaushik wrote: 1)'CPropertySheet::GetTabControl' : illegal call of non-static member function
The compiler is telling you exactly what the problem is. CPropertySheet::GetTabControl() is not a static method.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
I am reading some value (path) from the registry. But that contains ~ operator in the path. But I want to display the full path. So kindly help me How can I translate ~ operator from file names or folder names using VC++
Regards,
K. Narasimharao
knarasimharao
|
|
|
|
|
|
Just how many times do you plan on asking the same question? Once is enough in any 24-hour period.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi
i wanted to log processes into a file so i coded a program that shows processes(i used both enumprocesses & snapshot,actually i coded 2 program and both of the run well)then i wanted to add a code to shows the creation new process.so i used hook program.
evreything is well.i used messagebox to show which procees is wanted to run.but when i use file to log i dont know what happens the file someties is empty and sometimes show the hook program name.but dont shows the correct result(thas shows in the messagebox)heres is my code:
char host[1024], szModName[1024], *host1; // initialize these accordingly
if (! (host1 = strrchr(szModName, '\\'))) strcpy(host, szModName);
else strcpy(host, host1 + 1);
FILE *fout = fopen("out.txt", "a+");
fwrite(host, 1, strlen(host), fout); fclose(fout); }
|
|
|
|
|
farshad.f wrote: heres is my code:
char host[1024], szModName[1024], *host1; // initialize these accordingly
if (! (host1 = strrchr(szModName, '\\'))) strcpy(host, szModName);
else strcpy(host, host1 + 1);
FILE *fout = fopen("out.txt", "a+");
fwrite(host, 1, strlen(host), fout); fclose(fout); }
So what's the problem? Do the variables contain the correct values? Do the functions return the expected results? Step through each statement using the debugger. Asking others (again) to do this for you will get you nowhere.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I am reading some value (path) from the registry. But that contains ~ operator in the path. But I want to display the full path. So kindly help me How can I translate ~ operator from file names or folder names using VC++
Regards,
K. Narasimharao
knarasimharao
|
|
|
|
|
GetLongPathName
--
======
Arman
|
|
|
|
|
Hi
The Wizard component that comes in with VC++ 6 does not let me add more than 9 pages ?
Why such an odd restriction and how to I get to add as many pages as I like ?
|
|
|
|
|
but u can added as many pages as u want by simply creating a new class derived from CPropertyPage and adding that page to the Property sheet using CPropertySheet ::AddPage()...
nave
|
|
|
|